Nameservers questions / help

47 posts / 0 new
Last post
#1 Wed, 11/10/2010 - 13:13
Xencored

Nameservers questions / help

Hello all

Right here i go and am sorry if you dont understand lol am trying my best to explain this :)

I run a few sites and in there settings for there domain i used to add the nameservers ns1.mymatesite.com and ns2.mymatesite.com

Now my mate has stoped running this nameserver So i have no idea what i can do now My Main Domain is myanimeisland.com is there a way i can add ns1.myanimeisland.com and ns2 and all will work?

also could i add this for all my domains ns1.myanimeisland.com for say nekotron.com etc...

Sorry its bloody hard to type and explain this problem ive got 123-reg to register the name servers ns1.myanimeisland.com and ns1 to my servers IP I did a test and added ns1.myanimeisland.com to vodkaholic.co.uk but it just gives me "Oops! Google Chrome could not find vodkaholic.co.uk" when i look at the site

Hope you can understand some of this post Thanks alot Mike

Wed, 11/10/2010 - 13:33
andreychek

So it sounds like you're saying you need a place to host a set of nameservers for the domains you're hosting.

Yeah, you can do that on your own server without a problem -- though, just remember that you can't just make up the names "ns1.myanimeisland.com" and "ns2.myanimeisland.com".

In order to use those, you need to do two things:

  1. In Virtualmin, go to Services -> DNS Domain, and add an "Address" record for each of those

  2. Go to your domain name registrar, and you'll need to register each as nameservers with your registrar. Once they're registered as nameservers, you'll be able to add them as the nameservers for your domain "vodkaholic.co.uk".

After that, your server should start answering DNS lookup requests for that domain (and any other domain you add those nameservers to).

-Eric

Wed, 11/10/2010 - 13:43
Xencored

Hi Eric Many Many Thanks for that glad you understood me :D

One more question if i may You say "In Virtualmin, go to Services -> DNS Domain, and add an "Address" record for each of those"

Does this mean i will have to add ns1.myanimeisland.com and ns2 in all the domain services i run? or only in the myaniemisland one?

Thanks

Edit also i did register them with my domain place but i get this on lookup

Retrieving DNS records for ns1.myanimeisland.com... Attempt to get a DNS server for ns1.myanimeisland.com failed: ns1.myanimeisland.com does not exist in the DNS

Wed, 11/10/2010 - 13:56
andreychek

One more question if i may You say "In Virtualmin, go to Services -> DNS Domain, and add an "Address" record for each of those"

For all the domains on your server, you should only need two nameservers... ns1.myanimeisland.com and ns2.myanimeisland.com.

So you'd only need to do that once, for the myanimeisland.com Virtual Server.

Attempt to get a DNS server for ns1.myanimeisland.com failed: ns1.myanimeisland.com does not exist in the DNS

It sounds like it's not seeing the ns1 and ns2 Address records added to your servers DNS yet. Make sure you add those first. If you did add them, you have to hit "Apply Zone" afterwards to make them take effect.

-Eric

Wed, 11/10/2010 - 14:16
Xencored

Ok i hit Apply Zone and this came up

"NDC command failed : rndc: connect failed: 127.0.0.1#953: connection refused"

Hmm ? anyideas Thanks

Wed, 11/10/2010 - 14:34
andreychek

Some folks mentioned a possible solution for that problem here:

http://www.virtualmin.com/node/10705

Also, you may be able to get around it by restarting BIND from the command line using the init scripts.

-Eric

Wed, 11/10/2010 - 14:50
Xencored

Hi Eric thanks for the link but am a noob what is init scripts sorry I restarted Bind in VM but same problem so i guess its not that

Edit indeed my file was Bind i set to root again and didnt get the error restarted also seem to have worked

Vodkaholic.co.uk still shows nothing tho Thanks

Wed, 11/10/2010 - 14:56
andreychek

You can use intodns.com to get a DNS report for your domain, and hopefully offer some insight into what's going awry:

http://www.intodns.com/vodkaholic.co.uk

According to it, it's not seeing Address records for your nameservers.

Remember that for this to work, the DNS for myanimeisland.com would need to be hosted on your server as well... it doesn't appear to be, as the nameservers for that domain point to ns1.hidnet.org.uk and ns2.hidnet.org.uk.

So when those lookups are taking place, they aren't querying your server, they're querying hidnet.org.uk.

-Eric

Wed, 11/10/2010 - 15:53
ronald
ronald's picture

it seems ns1. + ns2.myanimeisland.com are not registered as nameservers at your registrar (or at least do not have IP's entered) as they have no glue.

The IP's belonging to those nameserver need to be sent out into the world. Only the registrar can do this.

Wed, 11/10/2010 - 17:35
Xencored

Hey ok forget ns1 + ns2.myanimeisland.com

Am using ns1 and 2 .vodkaholic.co.uk now Ive added this in the nameservers for the domain also ive asked my domain host to register these as nameservers to the following IP 188.165.217.101

I still see nothing on vodkaholic.co.uk but am guessing its not registered the nameservers yet Thanks

Wed, 11/10/2010 - 17:56
Locutus

The NS and A entries from the registrar are set correctly and propagated now. Your sever 188.165.217.101 though says SERVFAIL when querying *.vodkaholic.co.uk.

Seems the BIND on that host is not yet correctly configured to serve that domain. It might help to use the Webmin BIND module's functions Check BIND Config globally, and Check records for the zone, to see any errors.

Wed, 11/10/2010 - 18:06
Xencored

Hi Locutus thanks for the help

I went to webmin >> servers >> BIND DNS server clicked on vodkaholic.co.uk than i hit check records

If this is the what you meant it give this No errors were found in the records file /var/lib/bind/vodkaholic.co.uk.hosts.

Wed, 11/10/2010 - 18:29
Locutus

Okay, then click "Check BIND Config" in the main screen, it's the second icon to the right on the bottow row. The error might be in BIND's main config file itself.

If there's no error reported there as well, try restarting BIND and then check /var/log/syslog or other logs there where BIND possibly records what it has to say. :)

Wed, 11/10/2010 - 18:35
Xencored

No errors were found in the BIND configuration file /etc/bind/named.conf or referenced zone files.

This is the log after a restart

Nov 11 01:33:11 ks312361 named[8595]: shutting down
Nov 11 01:33:11 ks312361 named[8595]: stopping command channel on 127.0.0.1#953
Nov 11 01:33:11 ks312361 named[8595]: stopping command channel on ::1#953
Nov 11 01:33:11 ks312361 named[8595]: no longer listening on ::1#53
Nov 11 01:33:11 ks312361 named[8595]: exiting
Nov 11 01:33:11 ks312361 named[8788]: starting BIND 9.6-ESV-R1 -c /etc/bind/named.conf
Nov 11 01:33:11 ks312361 named[8788]: built with '--prefix=/usr' '--build=x86_64-linux-gnu' '--host=x86_64-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--sysconfdir=/etc/bind' '--localstatedir=/var/run/bind' '--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' '--enable-ipv6' 'build_alias=x86_64-linux-gnu' 'host_alias=x86_64-linux-gnu' 'CFLAGS=-fno-strict-aliasing -DDIG_SIGCHASE -DNS_RUN_PID_DIR=0 -O2' 'LDFLAGS=' 'CPPFLAGS=' 'CXXFLAGS=-g -O2' 'FFLAGS=-g -O2'
Nov 11 01:33:11 ks312361 named[8788]: adjusted limit on open files from 1024 to 1048576
Nov 11 01:33:11 ks312361 named[8788]: found 8 CPUs, using 8 worker threads
Nov 11 01:33:11 ks312361 named[8788]: using up to 4096 sockets
Nov 11 01:33:11 ks312361 named[8788]: loading configuration from '/etc/bind/named.conf'
Nov 11 01:33:11 ks312361 named[8788]: using default UDP/IPv4 port range: [1024, 65535]
Nov 11 01:33:11 ks312361 named[8788]: using default UDP/IPv6 port range: [1024, 65535]
Nov 11 01:33:11 ks312361 named[8788]: listening on IPv4 interface lo, 127.0.0.1#53
Nov 11 01:33:11 ks312361 named[8788]: could not listen on UDP socket: address in use
Nov 11 01:33:11 ks312361 named[8788]: creating IPv4 interface lo failed; interface ignored
Nov 11 01:33:11 ks312361 named[8788]: listening on IPv6 interface lo, ::1#53
Nov 11 01:33:11 ks312361 named[8788]: automatic empty zone: 254.169.IN-ADDR.ARPA
Nov 11 01:33:11 ks312361 named[8788]: automatic empty zone: 2.0.192.IN-ADDR.ARPA
Nov 11 01:33:11 ks312361 named[8788]: automatic empty zone: 255.255.255.255.IN-ADDR.ARPA
Nov 11 01:33:11 ks312361 named[8788]: 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 11 01:33:11 ks312361 named[8788]: 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 11 01:33:11 ks312361 named[8788]: automatic empty zone: D.F.IP6.ARPA
Nov 11 01:33:11 ks312361 named[8788]: automatic empty zone: 8.E.F.IP6.ARPA
Nov 11 01:33:11 ks312361 named[8788]: automatic empty zone: 9.E.F.IP6.ARPA
Nov 11 01:33:11 ks312361 named[8788]: automatic empty zone: A.E.F.IP6.ARPA
Nov 11 01:33:11 ks312361 named[8788]: automatic empty zone: B.E.F.IP6.ARPA
Nov 11 01:33:11 ks312361 named[8788]: command channel listening on 127.0.0.1#953
Nov 11 01:33:11 ks312361 named[8788]: command channel listening on ::1#953
Nov 11 01:33:11 ks312361 named[8788]: additionally listening on IPv4 interface lo, 127.0.0.1#53
Nov 11 01:33:11 ks312361 named[8788]: could not listen on UDP socket: address in use
Nov 11 01:33:11 ks312361 named[8788]: creating IPv4 interface lo failed; interface ignored
Nov 11 01:33:11 ks312361 named[8788]: zone 0.in-addr.arpa/IN: loaded serial 1
Nov 11 01:33:11 ks312361 named[8788]: zone 127.in-addr.arpa/IN: loaded serial 1
Nov 11 01:33:11 ks312361 named[8788]: zone 255.in-addr.arpa/IN: loaded serial 1
Nov 11 01:33:11 ks312361 named[8788]: zone babylon5rpg.com/IN: loaded serial 1289353370
Nov 11 01:33:11 ks312361 named[8788]: zone myanimeisland.com/IN: loaded serial 1289365276
Nov 11 01:33:11 ks312361 named[8788]: zone rpg-central.com/IN: loaded serial 1289352156
Nov 11 01:33:11 ks312361 named[8788]: zone stargatecommandrpg.com/IN: loaded serial 1289357904
Nov 11 01:33:11 ks312361 named[8788]: zone localhost/IN: loaded serial 2
Nov 11 01:33:11 ks312361 named[8788]: zone vodkaholic.co.uk/IN: loaded serial 1289399469
Nov 11 01:33:11 ks312361 named[8788]: running
Nov 11 01:33:47 ks312361 pdns[20553]: Not authoritative for 'vodkaholic.co.uk', sending servfail to 92.114.98.140 (recursion was desired)
Nov 11 01:33:47 ks312361 pdns[20553]: Not authoritative for 'vodkaholic.co.uk', sending servfail to 92.114.98.140 (recursion was desired)
Nov 11 01:33:47 ks312361 pdns[20553]: Not authoritative for 'vodkaholic.co.uk', sending servfail to 92.114.98.140 (recursion was desired)
Nov 11 01:33:47 ks312361 pdns[20553]: Not authoritative for 'adobe.com', sending servfail to 92.114.98.140 (recursion was desired)
Nov 11 01:33:48 ks312361 pdns[20553]: Not authoritative for 'vodkaholic.co.uk', sending servfail to 209.85.228.84
Nov 11 01:33:54 ks312361 kernel: IPv6 addrconf: prefix with wrong length 56
Wed, 11/10/2010 - 18:54
Locutus

Aaargh! Please embed that log in   tags! I officially refuse to read it before you do that. ;-) You'll see what I mean I once you do that. :)

Wed, 11/10/2010 - 19:07
Locutus

Okay, that's much better. ;)

First thing I see is an error about "could not listen on UDP socket, address in use" for the localhost. Odd thing, since it seems to be reacting to queries (at least on the eth) later. Might want to check, after shutting BIND down, if any other processes are listening on 53 (netstat -lupn).

Then, the configured zones seemed to have loaded fine, but queries were rejected with not authoritative for.... It's possible there's something wrong with the respective zone.

Can you please post the contents of /etc/bind/named.conf.local?

Wed, 11/10/2010 - 19:12
Xencored
// // Do any local configuration here //   // Consider adding the 1918 zones here, if they are not used in your // organization //include "/etc/bind/zones.rfc1918";   zone "rpg-central.com" { type master; file "/var/lib/bind/rpg-central.com.hosts"; allow-transfer { 127.0.0.1; localnets; }; }; zone "babylon5rpg.com" { type master; file "/var/lib/bind/babylon5rpg.com.hosts"; allow-transfer { 127.0.0.1; localnets; }; }; zone "stargatecommandrpg.com" { type master; file "/var/lib/bind/stargatecommandrpg.com.hosts"; allow-transfer { 127.0.0.1; localnets; }; }; zone "myanimeisland.com" { type master; file "/var/lib/bind/myanimeisland.com.hosts"; allow-transfer { 127.0.0.1; localnets; }; }; zone "vodkaholic.co.uk" { type master; file "/var/lib/bind/vodkaholic.co.uk.hosts"; allow-transfer { 127.0.0.1; localnets; }; };

Thanks

Wed, 11/10/2010 - 19:17
Locutus

Okay, now please the contents of /var/lib/bind/vodkaholic.co.uk.hosts, I'm quite certain we'll find errors there.

Wed, 11/10/2010 - 19:26
Xencored
$ttl 38400 @ IN SOA ks*******.kimsufi.com. root.ks*********.kimsufi.com. ( 1289399469 10800 3600 604800 38400 ) @ IN NS ks***********.kimsufi.com. vodkaholic.co.uk. IN A 188.165.217.101 www.vodkaholic.co.uk. IN A 188.165.217.101 ftp.vodkaholic.co.uk. IN A 188.165.217.101 m.vodkaholic.co.uk. IN A 188.165.217.101 localhost.vodkaholic.co.uk. IN A 127.0.0.1 webmail.vodkaholic.co.uk. IN A 188.165.217.101 admin.vodkaholic.co.uk. IN A 188.165.217.101 mail.vodkaholic.co.uk. IN A 188.165.217.101 vodkaholic.co.uk. IN MX 5 mail.vodkaholic.co.uk. vodkaholic.co.uk. IN TXT "v=spf1 a mx a:vodkaholic.co.uk ip4:188.165.217.101 ?all" ns1.vodkaholic.co.uk. IN A 188.165.217.101 ns2.vodkaholic.co.uk. IN A 188.165.217.101

Ive stared out my server name ***** Thanks again for the help

Wed, 11/10/2010 - 19:39
Locutus

Okay, I see a problem there. What is "kimsufi.com"?

The NS entries at the NIC say that ns1.vodkaholic.co.uk., as in your server, is the authoritative nameserver for that domain, but in your zone file, you delegate the SOA and the NS to some system at a domain (kimsufi.com) which is not known to BIND. That is bound to confuse it. :)

The entries at the NIC must match what your zone file says for SOA and NS.

Wed, 11/10/2010 - 19:39
Xencored

The ks*******.kimsufi.com is my servers name "System hostname ks*****.kimsufi.com" also its where i log into webmin

Wed, 11/10/2010 - 19:43
Locutus

Replace the kimsufi thingy in the SOA and the NS record with "ns1.vodkaholic.co.uk." and try again.

(And tomorrow, you need to pay for the alcohol withdrawal treatment that I'll require. ;) )

Wed, 11/10/2010 - 19:47
Xencored

Haha dam am skint as it is :(

oki i changed that to

$ttl 38400 @ IN SOA ns1.vodkaholic.co.uk. root.ns1.vodkaholic.co.uk. ( 1289399469 10800 3600 604800 38400 ) @ IN NS ns1.vodkaholic.co.uk. vodkaholic.co.uk. IN A 188.165.217.101 www.vodkaholic.co.uk. IN A 188.165.217.101 ftp.vodkaholic.co.uk. IN A 188.165.217.101 m.vodkaholic.co.uk. IN A 188.165.217.101 localhost.vodkaholic.co.uk. IN A 127.0.0.1 webmail.vodkaholic.co.uk. IN A 188.165.217.101 admin.vodkaholic.co.uk. IN A 188.165.217.101 mail.vodkaholic.co.uk. IN A 188.165.217.101 vodkaholic.co.uk. IN MX 5 mail.vodkaholic.co.uk. vodkaholic.co.uk. IN TXT "v=spf1 a mx a:vodkaholic.co.uk ip4:188.165.217.101 ?all" ns1.vodkaholic.co.uk. IN A 188.165.217.101 ns2.vodkaholic.co.uk. IN A 188.165.217.101

restarted BIND and is the same as before (unless i edited it wrong) Thanks

Wed, 11/10/2010 - 19:53
Locutus

You need to increment the serial number (the 128939...) each time you make a change to the zone, otherwise it won't be recognized as changed.

Wed, 11/10/2010 - 20:00
Locutus

Oh now WAIT. I just noticed something in your syslog.

Nov 11 01:33:11 ks312361 named[8788]: running Nov 11 01:33:47 ks312361 pdns[20553]: Not authoritative for 'vodkaholic.co.uk', sending servfail to 92.114.98.140 (recursion was desired)

Take a close look at the application tags. You are running two nameservers (BIND and PowerDNS) on your system! No wonder BIND says that port 53 is in use. And it's PowerDNS who's replying SERVFAIL to the queries.

You might want to fix that first before trying anything else. ;P (The old saying two are better than one does not apply in all cases.)

Wed, 11/10/2010 - 20:02
Xencored

Hmm am not sure how lol i did "aptitude purge pdns-recursor" thats all i could find now do i know if its gone sorry for the lame question ;/

Wed, 11/10/2010 - 20:06
Locutus

Well, the most feasible way is probably to restart BIND and check the syslog if it's still complaining about being unable to use port 53. :)

Wed, 11/10/2010 - 20:09
Xencored

Ok looks like i did it (got rid of powerdns that is)

Nov 11 03:08:56 ks312361 named[17582]: shutting down Nov 11 03:08:56 ks312361 named[17582]: stopping command channel on 127.0.0.1#953 Nov 11 03:08:56 ks312361 named[17582]: stopping command channel on ::1#953 Nov 11 03:08:56 ks312361 named[17582]: no longer listening on 127.0.0.1#53 Nov 11 03:08:56 ks312361 named[17582]: no longer listening on ::1#53 Nov 11 03:08:56 ks312361 named[17582]: exiting Nov 11 03:08:56 ks312361 named[18034]: starting BIND 9.6-ESV-R1 -c /etc/bind/named.conf Nov 11 03:08:56 ks312361 named[18034]: built with '--prefix=/usr' '--build=x86_64-linux-gnu' '--host=x86_64-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--sysconfdir=/etc/bind' '--localstatedir=/var/run/bind' '--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' '--enable-ipv6' 'build_alias=x86_64-linux-gnu' 'host_alias=x86_64-linux-gnu' 'CFLAGS=-fno-strict-aliasing -DDIG_SIGCHASE -DNS_RUN_PID_DIR=0 -O2' 'LDFLAGS=' 'CPPFLAGS=' 'CXXFLAGS=-g -O2' 'FFLAGS=-g -O2' Nov 11 03:08:56 ks312361 named[18034]: adjusted limit on open files from 1024 to 1048576 Nov 11 03:08:56 ks312361 named[18034]: found 8 CPUs, using 8 worker threads Nov 11 03:08:56 ks312361 named[18034]: using up to 4096 sockets Nov 11 03:08:56 ks312361 named[18034]: loading configuration from '/etc/bind/named.conf' Nov 11 03:08:56 ks312361 named[18034]: using default UDP/IPv4 port range: [1024, 65535] Nov 11 03:08:56 ks312361 named[18034]: using default UDP/IPv6 port range: [1024, 65535] Nov 11 03:08:56 ks312361 named[18034]: listening on IPv4 interface lo, 127.0.0.1#53 Nov 11 03:08:56 ks312361 named[18034]: listening on IPv6 interface lo, ::1#53 Nov 11 03:08:56 ks312361 named[18034]: automatic empty zone: 254.169.IN-ADDR.ARPA Nov 11 03:08:56 ks312361 named[18034]: automatic empty zone: 2.0.192.IN-ADDR.ARPA Nov 11 03:08:56 ks312361 named[18034]: automatic empty zone: 255.255.255.255.IN-ADDR.ARPA Nov 11 03:08:56 ks312361 named[18034]: 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 11 03:08:56 ks312361 named[18034]: 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 11 03:08:56 ks312361 named[18034]: automatic empty zone: D.F.IP6.ARPA Nov 11 03:08:56 ks312361 named[18034]: automatic empty zone: 8.E.F.IP6.ARPA Nov 11 03:08:56 ks312361 named[18034]: automatic empty zone: 9.E.F.IP6.ARPA Nov 11 03:08:56 ks312361 named[18034]: automatic empty zone: A.E.F.IP6.ARPA Nov 11 03:08:56 ks312361 named[18034]: automatic empty zone: B.E.F.IP6.ARPA Nov 11 03:08:56 ks312361 named[18034]: command channel listening on 127.0.0.1#953 Nov 11 03:08:56 ks312361 named[18034]: command channel listening on ::1#953 Nov 11 03:08:56 ks312361 named[18034]: zone 0.in-addr.arpa/IN: loaded serial 1 Nov 11 03:08:56 ks312361 named[18034]: zone 127.in-addr.arpa/IN: loaded serial 1 Nov 11 03:08:56 ks312361 named[18034]: zone 255.in-addr.arpa/IN: loaded serial 1 Nov 11 03:08:56 ks312361 named[18034]: zone babylon5rpg.com/IN: loaded serial 1289353370 Nov 11 03:08:56 ks312361 named[18034]: zone myanimeisland.com/IN: loaded serial 1289365276 Nov 11 03:08:56 ks312361 named[18034]: zone rpg-central.com/IN: loaded serial 1289352156 Nov 11 03:08:56 ks312361 named[18034]: zone stargatecommandrpg.com/IN: loaded serial 1289357904 Nov 11 03:08:56 ks312361 named[18034]: zone localhost/IN: loaded serial 2 Nov 11 03:08:56 ks312361 named[18034]: zone vodkaholic.co.uk/IN: loaded serial 1289399469 Nov 11 03:08:56 ks312361 named[18034]: running Nov 11 03:09:01 ks312361 /USR/SBIN/CRON[18059]: (root) CMD ( [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -print0 | xargs -n 200 -r -0 rm) Nov 11 03:09:01 ks312361 /USR/SBIN/CRON[18060]: (root) CMD (/usr/local/rtm/bin/rtm 24 > /dev/null 2> /dev/null)
Wed, 11/10/2010 - 20:22
Locutus

Nov 11 03:08:56 ks312361 named[18034]: listening on IPv4 interface lo, 127.0.0.1#53

Now you need to configure BIND to listen on 0.0.0.0 instead.

And it's not really intended to have two nameservers point to the same IP address... It's meant for redundancy. :)

Good luck for now, need to continue tomorrow, bedtime here.

Wed, 11/10/2010 - 22:42
Xencored

0.0.0.0 ?and thanks for the help :)

Edit =

http://www.intodns.com/vodkaholic.co.uk seem to work now O_o

Thu, 11/11/2010 - 04:29
Locutus

0.0.0.0 as opposed to specifying a concrete IP means "listen on all interfaces".

Yes, your domain resolves correctly from the outside now.

Thu, 11/11/2010 - 09:34 (Reply to #31)
Xencored

How can i set it all to 0.0.0.0 also is everything working ok now i still see alot of errors on intodns.com page

Thanks again

Thu, 11/11/2010 - 11:00
Locutus

Setting to "listen on all": Go to Webmin -> Servers -> BIND DNS Server -> Addresses and Topology and set "Ports and addresses to listen on" to "Default". That should remove any LISTEN directives from the config, and the default is to listen on all interfaces.

Checking out that "intodns" thingy in a bit.

Thu, 11/11/2010 - 11:08
Locutus

Mmh, this "intodns" thingy is nice. :) Need to put that in my bookmarks. I usually use the "nameserver predelegation check" web interface from DENIC.

It seems that right now your BIND is down again (or a firewall blocking port 53), since I cannot dig from it.

Thu, 11/11/2010 - 11:23
Xencored

Ok i changed the above and restarted

Hmm seems pdns is still here my logs are full of this

Nov 11 18:22:54 ks312361 pdns[5473]: Our pdns instance exited with code 1 Nov 11 18:22:54 ks312361 pdns[5473]: Respawning Nov 11 18:22:55 ks312361 pdns[7153]: Guardian is launching an instance Nov 11 18:22:55 ks312361 pdns[7153]: This is module gmysqlbackend.so reporting Nov 11 18:22:55 ks312361 pdns[7153]: This is a guarded instance of pdns Nov 11 18:22:55 ks312361 pdns[7153]: It is advised to bind to explicit addresses with the --local-address option Nov 11 18:22:55 ks312361 pdns[7153]: binding UDP socket to '0.0.0.0': Address already in use Nov 11 18:22:55 ks312361 pdns[7153]: Fatal error: Unable to bind to UDP socket Nov 11 18:22:56 ks312361 pdns[5473]: Our pdns instance exited with code 1 Nov 11 18:22:56 ks312361 pdns[5473]: Respawning Nov 11 18:22:57 ks312361 pdns[7154]: Guardian is launching an instance Nov 11 18:22:57 ks312361 pdns[7154]: This is module gmysqlbackend.so reporting Nov 11 18:22:57 ks312361 pdns[7154]: This is a guarded instance of pdns Nov 11 18:22:57 ks312361 pdns[7154]: It is advised to bind to explicit addresses with the --local-address option Nov 11 18:22:57 ks312361 pdns[7154]: binding UDP socket to '0.0.0.0': Address already in use Nov 11 18:22:57 ks312361 pdns[7154]: Fatal error: Unable to bind to UDP socket Nov 11 18:22:58 ks312361 pdns[5473]: Our pdns instance exited with code 1 Nov 11 18:22:58 ks312361 pdns[5473]: Respawning Nov 11 18:22:59 ks312361 pdns[7155]: Guardian is launching an instance Nov 11 18:22:59 ks312361 pdns[7155]: This is module gmysqlbackend.so reporting Nov 11 18:22:59 ks312361 pdns[7155]: This is a guarded instance of pdns Nov 11 18:22:59 ks312361 pdns[7155]: It is advised to bind to explicit addresses with the --local-address option Nov 11 18:22:59 ks312361 pdns[7155]: binding UDP socket to '0.0.0.0': Address already in use Nov 11 18:22:59 ks312361 pdns[7155]: Fatal error: Unable to bind to UDP socket Nov 11 18:23:00 ks312361 pdns[5473]: Our pdns instance exited with code 1 Nov 11 18:23:00 ks312361 pdns[5473]: Respawning Nov 11 18:23:01 ks312361 pdns[7156]: Guardian is launching an instance Nov 11 18:23:01 ks312361 pdns[7156]: This is module gmysqlbackend.so reporting Nov 11 18:23:01 ks312361 pdns[7156]: This is a guarded instance of pdns Nov 11 18:23:01 ks312361 pdns[7156]: It is advised to bind to explicit addresses with the --local-address option Nov 11 18:23:01 ks312361 pdns[7156]: binding UDP socket to '0.0.0.0': Address already in use Nov 11 18:23:01 ks312361 pdns[7156]: Fatal error: Unable to bind to UDP socket
Thu, 11/11/2010 - 11:26
Locutus

Quite obviously so. How did you install this system if I may ask, that you ended up with two nameservers? You probably did not use the Virtualmin install script, did you?

What distro is this? You should check your package manager (aptitude for Ubuntu/Debian) for anything pdns related and nuke it. :)

Thu, 11/11/2010 - 11:33
Xencored

Hey yes i used the Virtualmin install script as i could get Bind to work i tryed power dns. As am a noob i followed this post http://www.howtoforge.com/installing-powerdns-with-mysql-backend-and-pow...

I run Debian Lenny

Thu, 11/11/2010 - 11:36
Locutus

Yikes... yeah, those nice tutorials. They sure basically work, but probably don't take into account what stuff is already on your system. :) Now try to get rid of all that PDNS stuff again, and we shall see.

Thu, 11/11/2010 - 11:39
Xencored

Any ideas on how to get rid of it mate :(

Thu, 11/11/2010 - 11:44
Locutus

See my previous post. :)

EDIT: Oh, wait you wrote your distro there. Okay Lenny should have aptitude. Start it, and use the search function (press "/", then enter a regular expression of package name to look for) to check for any installed powerdns related packages.

Thu, 11/11/2010 - 11:45
Locutus

Hint: If you can't get rid of it, for now it should help too to just disable its autostart. You can do that with the Webmin module "System -> Bootup and Shutdown".

Thu, 11/11/2010 - 12:21
Xencored

Ok ive done that so is this all set up and working right now ? lol Big thanks also

This is the log after bind reboot and powerdns gone

Nov 11 19:21:01 ks312361 /USR/SBIN/CRON[14872]: (root) CMD (/usr/local/rtm/bin/rtm 24 > /dev/null 2> /dev/null) Nov 11 19:21:13 ks312361 named[3869]: shutting down Nov 11 19:21:13 ks312361 named[3869]: stopping command channel on 127.0.0.1#953 Nov 11 19:21:13 ks312361 named[3869]: stopping command channel on ::1#953 Nov 11 19:21:13 ks312361 named[3869]: no longer listening on 127.0.0.1#53 Nov 11 19:21:13 ks312361 named[3869]: no longer listening on 188.165.217.101#53 Nov 11 19:21:13 ks312361 named[3869]: no longer listening on ::1#53 Nov 11 19:21:13 ks312361 named[3869]: exiting Nov 11 19:21:13 ks312361 named[14934]: starting BIND 9.6-ESV-R1 -c /etc/bind/named.conf Nov 11 19:21:13 ks312361 named[14934]: built with '--prefix=/usr' '--build=x86_64-linux-gnu' '--host=x86_64-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--sysconfdir=/etc/bind' '--localstatedir=/var/run/bind' '--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' '--enable-ipv6' 'build_alias=x86_64-linux-gnu' 'host_alias=x86_64-linux-gnu' 'CFLAGS=-fno-strict-aliasing -DDIG_SIGCHASE -DNS_RUN_PID_DIR=0 -O2' 'LDFLAGS=' 'CPPFLAGS=' 'CXXFLAGS=-g -O2' 'FFLAGS=-g -O2' Nov 11 19:21:13 ks312361 named[14934]: adjusted limit on open files from 1024 to 1048576 Nov 11 19:21:13 ks312361 named[14934]: found 8 CPUs, using 8 worker threads Nov 11 19:21:13 ks312361 named[14934]: using up to 4096 sockets Nov 11 19:21:13 ks312361 named[14934]: loading configuration from '/etc/bind/named.conf' Nov 11 19:21:13 ks312361 named[14934]: using default UDP/IPv4 port range: [1024, 65535] Nov 11 19:21:13 ks312361 named[14934]: using default UDP/IPv6 port range: [1024, 65535] Nov 11 19:21:13 ks312361 named[14934]: listening on IPv4 interface lo, 127.0.0.1#53 Nov 11 19:21:13 ks312361 named[14934]: listening on IPv4 interface eth0, 188.165.217.101#53 Nov 11 19:21:13 ks312361 named[14934]: listening on IPv6 interface lo, ::1#53 Nov 11 19:21:13 ks312361 named[14934]: automatic empty zone: 254.169.IN-ADDR.ARPA Nov 11 19:21:13 ks312361 named[14934]: automatic empty zone: 2.0.192.IN-ADDR.ARPA Nov 11 19:21:13 ks312361 named[14934]: automatic empty zone: 255.255.255.255.IN-ADDR.ARPA Nov 11 19:21:13 ks312361 named[14934]: 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 11 19:21:13 ks312361 named[14934]: 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 11 19:21:13 ks312361 named[14934]: automatic empty zone: D.F.IP6.ARPA Nov 11 19:21:13 ks312361 named[14934]: automatic empty zone: 8.E.F.IP6.ARPA Nov 11 19:21:13 ks312361 named[14934]: automatic empty zone: 9.E.F.IP6.ARPA Nov 11 19:21:13 ks312361 named[14934]: automatic empty zone: A.E.F.IP6.ARPA Nov 11 19:21:13 ks312361 named[14934]: automatic empty zone: B.E.F.IP6.ARPA Nov 11 19:21:13 ks312361 named[14934]: command channel listening on 127.0.0.1#953 Nov 11 19:21:13 ks312361 named[14934]: command channel listening on ::1#953 Nov 11 19:21:13 ks312361 named[14934]: zone 0.in-addr.arpa/IN: loaded serial 1 Nov 11 19:21:13 ks312361 named[14934]: zone 127.in-addr.arpa/IN: loaded serial 1 Nov 11 19:21:13 ks312361 named[14934]: zone 255.in-addr.arpa/IN: loaded serial 1 Nov 11 19:21:13 ks312361 named[14934]: zone babylon5rpg.com/IN: loaded serial 1289353370 Nov 11 19:21:13 ks312361 named[14934]: zone mana4x2rpg.com/IN: loaded serial 1289491524 Nov 11 19:21:13 ks312361 named[14934]: zone myanimeisland.com/IN: loaded serial 1289365276 Nov 11 19:21:13 ks312361 named[14934]: zone rpg-central.com/IN: loaded serial 1289352156 Nov 11 19:21:13 ks312361 named[14934]: zone stargatecommandrpg.com/IN: loaded serial 1289357904 Nov 11 19:21:13 ks312361 named[14934]: zone localhost/IN: loaded serial 2 Nov 11 19:21:13 ks312361 named[14934]: /var/lib/bind/vodkaholic.co.uk.hosts:20: file does not end with newline Nov 11 19:21:13 ks312361 named[14934]: zone vodkaholic.co.uk/IN: loaded serial 1289399469 Nov 11 19:21:13 ks312361 named[14934]: running
Thu, 11/11/2010 - 15:03
Locutus

Resolution works okay now, yet IntoDNS still reports some errors/warnings. Some of them are related to the fact that you have two nameservers listed under the same IP. That is not recommended nor useful... You should have a secondary nameserver for your zone that is for many TLDs even required to be in a different /24 network.

Thu, 11/11/2010 - 15:43
Xencored

secondary nameserver hmm i only have one server

Thu, 11/11/2010 - 16:09
Locutus

Does your hoster maybe offer secondary nameserver services? Often they do that, for customers who wish to operate the primary, but have only one server/network.

Thu, 11/11/2010 - 18:59
Xencored

Ok thanks alot Locutus :)

Fri, 11/12/2010 - 04:43
Locutus

You're welcome! :)