Linode slave DNS not working anymore

Hi,

I haven't touched my server configuration for quite some time now, but after I brought a new domain, I've noticed that I have some weird DNS issue. My domain is idmedia.no and I'm using NSD for ns1.idmedia.no and Linode slave DNS for ns2 and 3.

However, when I run dig I get the following. Querying ns1.idmedia.no works as it should…

dig @ns2.idmedia.no idmedia.no

; <<>> DiG 9.9.5-3ubuntu0.3-Ubuntu <<>> @ns2.idmedia.no idmedia.no
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 47412
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; WARNING: recursion requested but not available

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1024
;; QUESTION SECTION:
;idmedia.no.                    IN      A

;; Query time: 109 msec
;; SERVER: 69.93.127.10#53(69.93.127.10)
;; WHEN: Sun Jul 12 20:43:57 CEST 2015
;; MSG SIZE  rcvd: 39

idmedia.no.conf:

NS      ns1.idmedia.no.
NS      ns2.idmedia.no.
NS      ns3.idmedia.no.

ns1             A       109.74.199.166
ns2             A       69.93.127.10
ns3             A       65.19.178.10

netstat

netstat -ntlp | grep LISTEN
tcp        0      0 0.0.0.0:53              0.0.0.0:*               LISTEN      2930/nsd
tcp        0      0 127.0.0.1:8952          0.0.0.0:*               LISTEN      2930/nsd

Does anyone of you have any idea on how I can debug this?

I will gladly provide other info if needed.

4 Replies

If you have bought a new domain, you have to setup Linode to act as slaves for it.

/T

@tmberg:

If you have bought a new domain, you have to setup Linode to act as slaves for it.

/T
I've added it as a slave in the DNS Manager yesterday without any luck. It's still not replicating to ns2 or ns3

Have you seen any usefull info in the nsd log?

This is the full log:

cat /var/log/nsd.log
[1416587409] nsd[2786]: notice: nsd started (NSD 4.0.1), pid 2778
[1417112315] nsd[23551]: notice: nsd started (NSD 4.0.1), pid 23549
[1417120578] nsd[24290]: warning: nsd is already running as 23549, continuing
[1417120578] nsd[24290]: error: can't bind udp socket: Address already in use
[1417120578] nsd[24290]: error: server initialization failed, nsd could not be started
[1417516305] nsd[2788]: notice: nsd started (NSD 4.0.1), pid 2781
[1418047399] nsd[8211]: warning: signal received, shutting down...
[1418048794] nsd[2765]: notice: nsd started (NSD 4.0.1), pid 2757
[1419945731] nsd[4222]: notice: nsd started (NSD 4.0.1), pid 4220
[1419945733] nsd[4224]: warning: nsd is already running as 4220, continuing
[1419945733] nsd[4224]: error: can't bind udp socket: Address already in use
[1419945733] nsd[4224]: error: server initialization failed, nsd could not be started
[1422007293] nsd[4227]: warning: signal received, shutting down...
[1422007308] nsd[7559]: notice: nsd started (NSD 4.0.1), pid 7552
[1422754449] nsd[2838]: notice: nsd started (NSD 4.0.1), pid 2824
[1422755420] nsd[3969]: notice: nsd started (NSD 4.0.1), pid 3967
[1422755422] nsd[3971]: warning: nsd is already running as 3967, continuing
[1422755422] nsd[3971]: error: can't bind udp socket: Address already in use
[1422755422] nsd[3971]: error: server initialization failed, nsd could not be started
[1422755686] nsd[4006]: notice: nsd started (NSD 4.0.1), pid 4004
[1422755688] nsd[4008]: warning: nsd is already running as 4004, continuing
[1422755688] nsd[4008]: error: can't bind udp socket: Address already in use
[1422755688] nsd[4008]: error: server initialization failed, nsd could not be started
[1423231847] nsd[6568]: warning: signal received, shutting down...
[1423231847] nsd[4004]: error: xfrd: error writing shutdown to main: Broken pipe
[1423231985] nsd[2855]: notice: nsd started (NSD 4.0.1), pid 2847
[1425326467] nsd[2855]: warning: signal received, shutting down...
[1425326467] nsd[2847]: error: xfrd: error writing shutdown to main: Broken pipe
[1425327536] nsd[2842]: notice: nsd started (NSD 4.0.1), pid 2833
[1436608097] nsd[2842]: warning: signal received, shutting down...
[1436608156] nsd[2936]: notice: nsd started (NSD 4.0.1), pid 2930
[1436735313] nsd[7565]: warning: signal received, shutting down...
[1436735313] nsd[7851]: notice: nsd started (NSD 4.0.1), pid 7849
[1436735327] nsd[7851]: warning: signal received, shutting down...
[1436735374] nsd[2920]: notice: nsd started (NSD 4.0.1), pid 2914

The only thing I can see is "error: can't bind udp socket: Address already in use", but I've checked the firewall config and nothing else is using :53 as far as I can tell…

lsof -i :53

COMMAND  PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
nsd     2914  nsd    4u  IPv4  10368      0t0  UDP *:domain
nsd     2914  nsd    5u  IPv4  10369      0t0  TCP *:domain (LISTEN)
nsd     2920  nsd    4u  IPv4  10368      0t0  UDP *:domain
nsd     2920  nsd    5u  IPv4  10369      0t0  TCP *:domain (LISTEN)
nsd     2947  nsd    4u  IPv4  10368      0t0  UDP *:domain
nsd     2947  nsd    5u  IPv4  10369      0t0  TCP *:domain (LISTEN)

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct