How do I set up my primary domain?

Sean K

Verified User
Joined
Sep 28, 2009
Messages
11
Disclaimer: I'm a complete newb to DirectAdmin.

I recently purchases a VPS, and am having a little bit of trouble finding my way around DirectAdmin. My host provided me with their internal DNS server IP, and they said it was for domain name resolution only. My question is, how do I set up my primary domain? What do I do with this internal DNS server IP? I have purchases my domain from GoDaddy, and normally what I'd do is take their NS1 and NS1 servers and input those into GoDaddy. The problem here is they've only given me one IP, and GoDaddy requires at least two.

Any help?
 
You have to request from your provider a second ip and assing it to ns2 (In host sections at Godaddy)
 
My mistake, they did indeed give me two IPs to use for domain name resolution. I tried putting them into GoDaddy as the NS1 and NS2 values and GoDaddy comes back saying it's an Invalid TLD. Am I doing something wrong, or is my host doing something wrong?
 
Awesome, now I'm gettin somewhere!

In the Host IP field, do I enter the two DNS server IPs they gave me? Or do I enter just one - the IP of the server itself?
 
You want to enter the ip or ips that are on your server.
 
Thanks floyd. Do you mind sticking with me for a little bit and helping me through? I added the 3 IPs that resolve to my server to the host list. What do I do next? Is it as simple as taking the two DNS IPs they gave me and entering those in the NS fields of my domain at GoDaddy? Or is there more that needs to be done?
 
I am not sure what you are looking at or what you have done. I have only done this with Godaddy a few times so I don't know the exact screens and text from memory.

There should be a place for you to enter sn1.example.com and then the ip and then save it. I think after that you will get a screen allowing you to enter a second hosts record ns2.example.com and the ip.

I was under the impression that you only had two ip's that route to your server. You only have to have two for nameservers.
 
I think I found what you're referring to. The screen says NS Record. It asks for the Host Name and then "Points to Host Name". Is that it? Which field do I type in NS1.DUNDER-MIFFLIN.ORG (my domain) and which field do I put the IP in? And is the IPs that point to my server or is the internal DNS that the host provided me with?

Thanks again floyd.
 
EDIT #2: To recap, I've created the host names (NS1 and NS2) at GoDaddy, and also created a host name for SERVER.DUNDER-MIFFLIN.ORG at GoDaddy as that is my servers host name (not sure if this is necessary). In DA, I've added NS1 and NS2 nameservers to two of my three IPs. The intersting thing is, when I ping NS1, it resolves to an IP I don't own, and when I ping NS2, it resolves to an IP I own, but he wrong IP. It resolves to 204.27.60.89 when it should resolve to 204.27.60.90.

Anyone have any idea what could be causing my NS1 to resolve to the wrong IP?

-----
I know this is an old thread, sorry.

Thanks for your help, floyd. I followed the directions up there and it worked. The only question I have now, is why some people (myself included) can connect to the server, while others can't. The server hostname is http://server.dunder-mifflin.org, so try and see if you can see the apache message.

I've added nameservers to my domain, dunder-mifflin.org (NS1 and NS2) and given them two of the three IP addresses that point to my server. The two addresses I used are different than the server hostname IP, is that acceptable?

Also, I added the nameservers to dunder-mifflin.org, is that the right thing to do? Or do I need to create a server.dunder-mifflin.org subdomain at GoDaddy and then somehow associate nameservers with it?

I'm just really confused as to why some people can get to the server while most others can't.

EDIT: I hadn't thought about this before, but I had only created NS1 and NS2 hostnames at GoDaddy, however the hostname of my server is server.dunder-mifflin.org, so does that mean I need to create a NS1, NS2, as well as SERVER hostname at GoDaddy? I have gone ahead and done that, maybe it will do something?
 
Last edited:
Neither nameserver is registered at GoDaddy. For example (ns2):
Code:
$ dig @a.gtld-servers.net ns2.dunder-mifflin.org

; <<>> DiG 9.3.1 <<>> @a.gtld-servers.net ns2.dunder-mifflin.org
; (2 servers found)
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 35436
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 13, ADDITIONAL: 13

;; QUESTION SECTION:
;ns2.dunder-mifflin.org.                IN      A

;; AUTHORITY SECTION:
.                       172800  IN      NS      j.root-servers.net.
.                       172800  IN      NS      b.root-servers.net.
.                       172800  IN      NS      e.root-servers.net.
.                       172800  IN      NS      m.root-servers.net.
.                       172800  IN      NS      k.root-servers.net.
.                       172800  IN      NS      d.root-servers.net.
.                       172800  IN      NS      h.root-servers.net.
.                       172800  IN      NS      l.root-servers.net.
.                       172800  IN      NS      c.root-servers.net.
.                       172800  IN      NS      g.root-servers.net.
.                       172800  IN      NS      f.root-servers.net.
.                       172800  IN      NS      a.root-servers.net.
.                       172800  IN      NS      i.root-servers.net.

;; ADDITIONAL SECTION:
j.root-servers.net.     172800  IN      A       192.58.128.30
j.root-servers.net.     172800  IN      AAAA    2001:503:c27::2:30
b.root-servers.net.     172800  IN      A       192.228.79.201
e.root-servers.net.     172800  IN      A       192.203.230.10
m.root-servers.net.     172800  IN      A       202.12.27.33
m.root-servers.net.     172800  IN      AAAA    2001:dc3::35
k.root-servers.net.     172800  IN      A       193.0.14.129
k.root-servers.net.     172800  IN      AAAA    2001:7fd::1
d.root-servers.net.     172800  IN      A       128.8.10.90
h.root-servers.net.     172800  IN      A       128.63.2.53
h.root-servers.net.     172800  IN      AAAA    2001:500:1::803f:235
l.root-servers.net.     172800  IN      A       199.7.83.42
c.root-servers.net.     172800  IN      A       192.33.4.12

;; Query time: 97 msec
;; SERVER: 192.5.6.30#53(192.5.6.30)
;; WHEN: Fri Oct 16 09:40:42 2009
;; MSG SIZE  rcvd: 507
Jeff
 
Back
Top