DNS...
Hello
Very much a newbie, decided I could migrate to an unmanaged server to save money. I have managed to get everything up and running. Almost. When I am logged in as root via SSH, I can run dig ns1.hpturbo.com and get a good result ;; QUESTION SECTION: ;ns1.hpturbo.com. IN A ;; ANSWER SECTION: ns1.hpturbo.com. 14400 IN A 204.12.208.82 ;; AUTHORITY SECTION: hpturbo.com. 14400 IN NS ns2.hpturbo.com. hpturbo.com. 14400 IN NS ns1.hpturbo.com. ;; ADDITIONAL SECTION: ns2.hpturbo.com. 14400 IN A 204.12.208.82 when I am just using terminal via osx, I get a NXDOMAIN I am trying to migrate to the new server while the old server is up-the old servers, which are managed, alerted me to this problem. I was able to access the server via browser and install oscommerce, but I didn't realize that this was because I was logged in as the root user via SSH. If I log in as root or admin, I can flush my browser cache and access the new site. If I exit ssh, I get the old site. What am I doing? Or, more specifically, what am I doing wrong? Let me know what else I need to post Tnx Brian |
to be completely clear:
via terminal: Phaedras-MacBook-Pro:~ phaedra$ dig ns1.hpturbo.com ; <<>> DiG 9.6.0-APPLE-P2 <<>> ns1.hpturbo.com ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 40927 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;ns1.hpturbo.com. IN A ;; AUTHORITY SECTION: hpturbo.com. 10800 IN SOA ns1.dreamhost.com. hostmaster.dreamhost.com. 2013050200 16269 1800 1814400 14400 ;; Query time: 51 msec ;; SERVER: 192.168.0.1#53(192.168.0.1) ;; WHEN: Fri May 3 15:59:57 2013 ;; MSG SIZE rcvd: 94 vs logged in as admin, 204.12.208.82 [admin@server ~]$ dig ns1.hpturbo.com ; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6_4.4 <<>> ns1.hpturbo.com ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 15515 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 1 ;; QUESTION SECTION: ;ns1.hpturbo.com. IN A ;; ANSWER SECTION: ns1.hpturbo.com. 14400 IN A 204.12.208.82 ;; AUTHORITY SECTION: hpturbo.com. 14400 IN NS ns2.hpturbo.com. hpturbo.com. 14400 IN NS ns1.hpturbo.com. ;; ADDITIONAL SECTION: ns2.hpturbo.com. 14400 IN A 204.12.208.82 ;; Query time: 0 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Fri May 3 17:00:19 2013 ;; MSG SIZE rcvd: 97 |
Your server address is different in the two dig queries. The first one that got the non-existent domain response lists the server as 192.168.0.1. The second lists localhost (127.0.0.1). Is the DNS server really on 192.168.0.1? Or is that your gateway address?
Check the /etc/resolv.conf and see what nameservers are listed there. |
Quote:
192.168.0.1=router on home network? /etc/resolv.conf # Generated by NetworkManager search hpturbo.com nameserver 204.12.208.82 ~ |
On a home network, the router is often either 192.168.0.1 or 192.168.1.1.
As root or as a regular user, I get a valid response from your nameserver: Code:
root@here1:~# dig @204.12.208.82 ns1.hpturbo.com |
well what is that about-I flushed my dns cache and I still get nxdomain
|
If you use dig or nslookup for ns1.hpturbo.com and point the lookup to your nameserver at 204.12.208.82, you'll get NOERROR. If you don't explicitly point to your nameserver, the dig or nslookup gets NXDOMAIN. This means that the root nameservers don't know how to find your nameserver at 204.12.208.82. They are finding a different nameserver for hpturbo.com that doesn't know about your ns1 and ns2 host names.
If I look for hpturbo.com without a host name, I get back two different IP addresses. Code:
nslookup hpturbo.com Code:
nslookup Code:
nslookup Code:
nslookup This is a guess. When you are "logged in as root via SSH", I presume you mean that you are logged in to 204.12.208.82, the system that hosts your new nameservers, and that your resolv.conf on that system specifies nameserver 204.12.208.82. And when you do the lookup from a terminal window on your Macbook, your resolv.conf points to 192.168.0.1, the router and internet gateway on your home network, which forwards the DNS request to your ISPs DNS servers (or whatever you have specified in the configuration). When your lookup takes that path, it is hitting the dreamserver.com nameservers, not your new ns1/ns2.hpturbo.com nameservers on 204.12.208.82. Does that sound possible? |
Quote:
Being a noob, I believed this advice, not knowing how else/where else to look. I deleted everything out of my new servers and I went through the entire process of creating a domain, etc., via directadmin again, and because I get the same results that I have been advised were indicative of failure, I wondered what I was doing wrong. It sounds like what you are telling me is that everything seems to be configured correctly, if I change the nameservers at Dreamhost, everything may work correctly. When the DNS change propogates, a dig search will yield exactly what I am (incorrectly) looking for? |
Yes, if you delete all your hpturbo.com DNS records from the Dreamhost nameservers, your new nameserver will be the only one answering for hpturbo.com, and all hosts you define will be found. That's assuming your new nameservers are configured correctly. Be sure to include the reverse pointers (e.g., assuming that 204.12.208.82 is your only IP address, netmask 255.255.255.255, then 82.208.12.204.in-addr.arpa. is the reverse pointer).
|
Quote:
Transferring out of Dreamhost as we speak. Their customer support is god awful-NO ONE but one person knew this was the problem. Pretty much everyone said "wait for the DNS change to propogate." One person said "dig ns1.hpturbo.com is a bad nameserver," and finally, I'm told "no custom DNS entries evar." Incredible. edit: for clarity, I was told that I could not change my nameservers because no one can do this at dreamhost. That seemed dumb, so I asked someone else. They said my nameserver changes just take a while. Then someone at dreamhost said "oh, your changes to the nameservers were rejected because there is nothing at ns1.hpturbo.com-dig ns1.hpturbo.com yourself to see." So I went to this forum to try to fix the 'error.' Now, I am back to "no one can change nameservers at dreamhost." |
All times are GMT -5. The time now is 03:29 AM. |