Hi. It's been more than 72 hours since I set up DNS. I called my registrar today and they confirmed I have everything set up correctly on their end as far as a glued domain. Do these settings look right? What other steps can I take? This is on an unmanaged VPS. root@XXXX:~# lsb_release -a Code: No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 9.10 Release: 9.10 Codename: karmic root@XXXX:~# dig allcallz.com Code: ; <<>> DiG 9.6.1-P2 <<>> allcallz.com ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 29127 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2 ;; QUESTION SECTION: ;allcallz.com. IN A ;; ANSWER SECTION: allcallz.com. 3600 IN A 65.98.87.214 ;; AUTHORITY SECTION: allcallz.com. 3600 IN NS ns2.allcallz.com. allcallz.com. 3600 IN NS ns1.allcallz.com. ;; ADDITIONAL SECTION: ns1.allcallz.com. 86400 IN A 65.98.87.214 ns2.allcallz.com. 86400 IN A 65.98.87.215 ;; Query time: 2 msec ;; SERVER: 65.98.87.215#53(65.98.87.215) ;; WHEN: Mon Nov 5 20:18:41 2012 ;; MSG SIZE rcvd: 114 ETA root@XXXX:~# netstat -tap | grep 'named' Code: tcp 0 0 65.98.87.215:domain *:* LISTEN 32606/named tcp 0 0 XXXX.allcallz.c:domain *:* LISTEN 32606/named tcp 0 0 localhost.locald:domain *:* LISTEN 32606/named tcp 0 0 localhost.localdoma:953 *:* LISTEN 32606/named tcp6 0 0 [::]:domain [::]:* LISTEN 32606/named tcp6 0 0 localhost:953 [::]:* LISTEN 32606/named root@XXXX:~# netstat -udp Code: Active Internet connections (w/o servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name ETA LOG I cleared the log and rebooted. I wanted to filter out everything that happened while I testing. root@XXXX:/var/log# grep named /var/log/syslog Code: Nov 5 21:57:10 XXXX named[32606]: received control channel command 'stop -p' Nov 5 21:57:10 XXXX named[32606]: shutting down: flushing changes Nov 5 21:57:10 XXXX named[32606]: stopping command channel on 127.0.0.1#953 Nov 5 21:57:10 XXXX named[32606]: stopping command channel on ::1#953 Nov 5 21:57:10 XXXX named[32606]: no longer listening on ::#53 Nov 5 21:57:10 XXXX named[32606]: no longer listening on 127.0.0.1#53 Nov 5 21:57:10 XXXX named[32606]: no longer listening on 65.98.87.214#53 Nov 5 21:57:10 XXXX named[32606]: no longer listening on 65.98.87.215#53 Nov 5 21:57:10 XXXX named[32606]: exiting Nov 5 21:57:45 XXXX named[6142]: starting BIND 9.6.1-P2 -u bind Nov 5 21:57:45 XXXX named[6142]: built with '--prefix=/usr' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--sysconfdir=/etc/bind' '--localstatedir=/var' '--enable-threads' '--enable-largefile' '--with-libtool' '--enable-shared' '--enable-static' '--with-openssl=/usr' '--with-gssapi=/usr' '--with-gnu-ld' '--with-dlz-postgres=no' '--with-dlz-mysql=no' '--with-dlz-bdb=yes' '--with-dlz-filesystem=yes' '--with-dlz-ldap=yes' '--with-dlz-stub=yes' '--with-geoip=/usr' '--enable-ipv6' 'CFLAGS=-fno-strict-aliasing -DDIG_SIGCHASE -O2' 'LDFLAGS=-Wl,-Bsymbolic-functions' 'CPPFLAGS=' 'CXXFLAGS=-g -O2' 'FFLAGS=-g -O2' Nov 5 21:57:45 XXXX named[6142]: adjusted limit on open files from 1024 to 1048576 Nov 5 21:57:45 XXXX named[6142]: found 8 CPUs, using 8 worker threads Nov 5 21:57:45 XXXX named[6142]: using up to 4096 sockets Nov 5 21:57:45 XXXX named[6142]: loading configuration from '/etc/bind/named.conf' Nov 5 21:57:45 XXXX named[6142]: using default UDP/IPv4 port range: [1024, 65535] Nov 5 21:57:45 XXXX named[6142]: using default UDP/IPv6 port range: [1024, 65535] Nov 5 21:57:45 XXXX named[6142]: listening on IPv6 interfaces, port 53 Nov 5 21:57:45 XXXX named[6142]: listening on IPv4 interface lo, 127.0.0.1#53 Nov 5 21:57:45 XXXX named[6142]: listening on IPv4 interface venet0:0, 65.98.87.214#53 Nov 5 21:57:45 XXXX named[6142]: listening on IPv4 interface venet0:1, 65.98.87.215#53 Nov 5 21:57:45 XXXX named[6142]: automatic empty zone: 254.169.IN-ADDR.ARPA Nov 5 21:57:45 XXXX named[6142]: automatic empty zone: 2.0.192.IN-ADDR.ARPA Nov 5 21:57:45 XXXX named[6142]: automatic empty zone: 255.255.255.255.IN-ADDR.ARPA Nov 5 21:57:45 XXXX named[6142]: automatic empty zone: 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA Nov 5 21:57:45 XXXX named[6142]: automatic empty zone: 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA Nov 5 21:57:45 XXXX named[6142]: automatic empty zone: D.F.IP6.ARPA Nov 5 21:57:45 XXXX named[6142]: automatic empty zone: 8.E.F.IP6.ARPA Nov 5 21:57:45 XXXX named[6142]: automatic empty zone: 9.E.F.IP6.ARPA Nov 5 21:57:45 XXXX named[6142]: automatic empty zone: A.E.F.IP6.ARPA Nov 5 21:57:45 XXXX named[6142]: automatic empty zone: B.E.F.IP6.ARPA Nov 5 21:57:45 XXXX named[6142]: command channel listening on 127.0.0.1#953 Nov 5 21:57:45 XXXX named[6142]: command channel listening on ::1#953 Nov 5 21:57:45 XXXX named[6142]: zone 0.in-addr.arpa/IN: loaded serial 1 Nov 5 21:57:45 XXXX named[6142]: zone 127.in-addr.arpa/IN: loaded serial 1 Nov 5 21:57:45 XXXX named[6142]: zone 255.in-addr.arpa/IN: loaded serial 1 Nov 5 21:57:45 XXXX named[6142]: zone allcallz.com/IN: allcallz.com.allcallz.com/MX 'allcallz.com.allcallz.com' has no address records (A or AAAA) Nov 5 21:57:45 XXXX named[6142]: zone allcallz.com/IN: loaded serial 2012110407 Nov 5 21:57:45 XXXX named[6142]: zone localhost/IN: loaded serial 2 Nov 5 21:57:45 XXXX named[6142]: running Nov 5 21:57:45 XXXX named[6142]: zone allcallz.com/IN: sending notifies (serial 2012110407) Nov 5 21:57:47 XXXX named[6142]: network unreachable resolving 'ntp.ubuntu.com/A/IN': 2001:503:231d::2:30#53 Nov 5 21:57:53 XXXX named[6142]: network unreachable resolving 'eur1.akam.net/AAAA/IN': 2001:7fd::1#53 Nov 5 21:57:53 XXXX named[6142]: network unreachable resolving 'usc3.akam.net/A/IN': 2001:500:2f::f#53 Nov 5 21:57:53 XXXX named[6142]: network unreachable resolving 'ns4-64.akam.net/A/IN': 2001:dc3::35#53 Nov 5 21:57:53 XXXX named[6142]: network unreachable resolving 'ns7-67.akam.net/A/IN': 2001:500:3::42#53 Nov 5 21:57:53 XXXX named[6142]: network unreachable resolving 'ns7-67.akam.net/AAAA/IN': 2001:503:c27::2:30#53 Nov 5 21:57:53 XXXX named[6142]: network unreachable resolving 'ns7-66.akam.net/A/IN': 2001:503:ba3e::2:30#53 Nov 5 21:57:53 XXXX named[6142]: network unreachable resolving 'ns4-64.akam.net/AAAA/IN': 2001:503:ba3e::2:30#53 Nov 5 21:57:53 XXXX named[6142]: network unreachable resolving 'ns7-66.akam.net/A/IN': 2001:500:1::803f:235#53 Nov 5 21:57:53 XXXX named[6142]: network unreachable resolving 'usc3.akam.net/A/IN': 2600:1406:1b::64#53 Nov 5 21:58:04 XXXX named[6142]: network unreachable resolving 'current.cvd.clamav.net/TXT/IN': 2001:503:a83e::2:30#53 Nov 5 21:58:05 XXXX named[6142]: network unreachable resolving '49.41.35.71.in-addr.arpa/PTR/IN': 2001:500:87::87#53 Nov 5 21:58:05 XXXX named[6142]: network unreachable resolving 'u.arin.net/A/IN': 2001:500:14:6050:ad::1#53 Nov 5 21:58:05 XXXX named[6142]: network unreachable resolving 'y.arin.net/AAAA/IN': 2001:5a0:10::2#53 Nov 5 21:58:05 XXXX named[6142]: network unreachable resolving 'x.arin.net/AAAA/IN': 2001:500:13::108#53 Nov 5 21:58:05 XXXX named[6142]: network unreachable resolving 't.arin.net/AAAA/IN': 2001:500:31::108#53 Nov 5 21:58:05 XXXX named[6142]: network unreachable resolving 'y.arin.net/A/IN': 2001:500:31::108#53 Nov 5 22:00:06 XXXX named[6142]: network unreachable resolving 'allcallz.com.fulldom.rfc-ignorant.org/A/IN': 2001:500:e::1#53 Nov 5 22:00:06 XXXX named[6142]: network unreachable resolving 'allcallz.com.fulldom.rfc-ignorant.org/A/IN': 2001:500:c::1#53 Nov 5 22:00:06 XXXX named[6142]: network unreachable resolving 'allcallz.com.rhsbl.ahbl.org/A/IN': 2a00:f10:111::1337:1001#53 Nov 5 22:00:06 XXXX named[6142]: network unreachable resolving 'allcallz.com.rhsbl.ahbl.org/A/IN': 2620:64:0:1::6#53 Nov 5 22:00:06 XXXX named[6142]: network unreachable resolving 'allcallz.com.bl.open-whois.org/A/IN': 2607:f208:206::1d#53 Nov 5 22:00:06 XXXX named[6142]: network unreachable resolving 'b.rbl-auth.sr.sonic.net/AAAA/IN': 2607:f0d0:1102:f::2#53 Nov 5 22:00:06 XXXX named[6142]: network unreachable resolving 'b.rbl-auth.sr.sonic.net/AAAA/IN': 2001:48c8:1:1::2#53 Nov 5 22:00:06 XXXX named[6142]: network unreachable resolving 'b.rbl-auth.sr.sonic.net/AAAA/IN': 2001:5a8:0:3::1#53 Nov 5 22:00:06 XXXX named[6142]: lame server resolving 'allcallz.com.fulldom.rfc-ignorant.org' (in 'fulldom.rfc-ignorant.org'?): 127.0.0.1#53 Nov 5 22:00:06 XXXX named[6142]: network unreachable resolving 'ahbl.bl.xs4all.nl/A/IN': 2a00:d78:0:102:193:176:144:5#53 Nov 5 22:00:06 XXXX named[6142]: network unreachable resolving 'ahbl.bl.xs4all.nl/AAAA/IN': 2001:67c:1010:10::53#53 Nov 5 22:00:07 XXXX named[6142]: network unreachable resolving 'ahbl.bl.xs4all.nl/A/IN': 2001:888:0:7::77#53
The output of the dig command is fine and shows that dns records for the domain exist and get delivered by the dns server of the domain. So what is your exact problem?
root@XXXX:~# dig @localhost allcallz.com Code: ; <<>> DiG 9.6.1-P2 <<>> @localhost allcallz.com ; (2 servers found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 49453 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2 ;; QUESTION SECTION: ;allcallz.com. IN A ;; ANSWER SECTION: allcallz.com. 3600 IN A 65.98.87.214 ;; AUTHORITY SECTION: allcallz.com. 3600 IN NS ns1.allcallz.com. allcallz.com. 3600 IN NS ns2.allcallz.com. ;; ADDITIONAL SECTION: ns1.allcallz.com. 86400 IN A 65.98.87.214 ns2.allcallz.com. 86400 IN A 65.98.87.215 ;; Query time: 43 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Tue Nov 6 01:48:53 2012 ;; MSG SIZE rcvd: 114
Thats ok, so the issie is not in the dns records on your server. Maybe a firewall blocks the dns querys or your bind server is not listening on the external interface. Please check your firewall and post the output of: netstat -tap | grep named and iptables -L
root@XXXX:~# netstat -tap | grep named Code: tcp 0 0 65.98.87.215:domain *:* LISTEN 25751/named tcp 0 0 XXXX.allcallz.c:domain *:* LISTEN 25751/named tcp 0 0 localhost.locald:domain *:* LISTEN 25751/named tcp 0 0 localhost.localdoma:953 *:* LISTEN 25751/named tcp6 0 0 [::]:domain [::]:* LISTEN 25751/named tcp6 0 0 localhost:953 [::]:* LISTEN 25751/named root@XXXX:~# iptables -L Code: Chain INPUT (policy ACCEPT) target prot opt source destination fail2ban-ssh tcp -- anywhere anywhere FATAL: Could not load /lib/modules/2.6.18-028stab095.1-ent/modules.dep: No such file or directory FATAL: Could not load /lib/modules/2.6.18-028stab095.1-ent/modules.dep: No such file or directory multiport dports ssh Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination Chain fail2ban-ssh (1 references) target prot opt source destination RETURN all -- anywhere anywhere
Thats ok. Is the server located in a datacenter with direct internet access or do you host it at home / in office behind a router? is there a firewall installed in front of the server were the dns port might be closed?
This is an unmanaged VPS with HostV. What's strange or sad is I just set up a test server with Linode and within an hour I could access it with the domain name. (Different domain name and they handle nameservers) I'm pulling out my hair here trying to figure out what's wrong with the HostV one. I thought everything looks good on the server and 1and1 tells I set it up right on their end. (glued domain)
maybe you have just to wait a bit longer. When I run: dig @65.98.87.214 allcallz.com and dig @65.98.87.215 allcallz.com to query your dns server, I get a correct response on both IP addresses so your dns servers are working and are reachable. I'am not able to get a response when I use the ns1 and ns2 subdomains which indicates a problem with the glue records. Please contact the provider were you ordered the domain name allcallz.com again and ask them to verify that the glue records ns1.allcallz.com and ns2.allcallz.com are really created and that they point to the two IP addresses of your server.
Ok. Speaking of subdomains I have a question there. I created the NS1 and NS2 subdomains with 1and1, I entered those values into ISPConfig but I didn't create an actual subdomain on the server for them. Is that part correct as well? Thanks again.
Yes, thats correct. You dont have to create a subdomain in ispconfig, subdomains in ispconfig are not dns related, they are apache vhost aliases.
I redid everything with my registrar and it kinda works now .... but I can load the site by IP address but not by domain name??
hi, i have configurated a server UBUNTU 14.04 (with the instructions on https://www.howtoforge.com/perfect-...2-php-mysql-pureftpd-bind-dovecot-ispconfig-3) my DNS server is BIND9 but it not resolve any recherche. I hace declared my 2 public IP in my registrar (nic.ar) as ns1.. and ns2... and pionting to my load-balance. i have 3 servers, 1 win2008 (without domain - workgroup only) and 2 ubuntu 14.04 as primary dns and sec dns. y have translated all ports of the IP (ns1) to my primary DNS and same with the second. In local the doesn't resolce demands to the virtual hosrts and same for the web. when i make a ping to ns1.mydomain.com.ar this is not recherchable and te same situation for the ns2. can anyone helpme? (my english is very bad, i'm sory)