Operating System - Linux
1752790 Members
6385 Online
108789 Solutions
New Discussion юеВ

Re: DNS server doesn't work without listen-on-v6 { any; };

 
SOLVED
Go to solution
'chris'
Super Advisor

DNS server doesn't work without listen-on-v6 { any; };

hi

I have an internal DNS server BIND 9.2.2 running on linux SUSE 8.2

If I disable (#)
# listen-on-v6 { any; };
then DNS after restart doesn't work.

I don't need ipv6

know someone what's wrong ?

my config file:

options {

directory "/var/lib/named";

auth-nxdomain yes;
multiple-cnames no;
cleaning-interval 60;
datasize default;
stacksize default;
coresize default;
files unlimited;
# recursion yes;

forwarders { X.X.X.X; X.X.X.X; X.X.X.X; };

forward first;

# listen-on port 53 { 127.0.0.1; };
listen-on port 53 { 192.168.1.10; };

listen-on-v6 { any; };

#query-source address * port 53;
#transfer-source * port 53;
#notify-source * port 53;

#allow-query { 127.0.0.1; };

notify no;
};


12 REPLIES 12
Steven E. Protter
Exalted Contributor
Solution

Re: DNS server doesn't work without listen-on-v6 { any; };

Just because you don't use ipV6 doesn't mean its not enabled in other parts of the operating system.

You shouldn't be having this problem I agree, but sometimes turning stuff off just isn't the way to go.

To save valuable time, I'd back out that change and notify Suse of the "bug". You may find there are reasons it was implemented that way.

The good news is you've already posted the solution to this thread.

There may be other ways to solve this problem but they don't show up on my searches.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Chris Saunderson
Frequent Advisor

Re: DNS server doesn't work without listen-on-v6 { any; };

Have you got ipv6 compiled into the kernel? I found this note at the following site:

http://lucas.eggs.pl/manual/bind0-9.2.2/

If your operating system has integrated support for IPv6, it will be used automatically.

If you can determine whether IPv6 is enabled then you can recompile your kernel to remove support and you should be able to remove that directive from named.conf.
Ted Nugent called. He wants his shirt back.
'chris'
Super Advisor

Re: DNS server doesn't work without listen-on-v6 { any; };

hi Steven and Chris

I didn't compile ipv6 into the kernel.

how can I check if my operating system has integrated support for IPv6 ?


but if I try:

listen-on port 53 { 127.0.0.1; };
listen-on port 53 { 192.168.1.10; };

#listen-on-v6 { any; };

then it works without any problems.

greetings
chris
Chris Saunderson
Frequent Advisor

Re: DNS server doesn't work without listen-on-v6 { any; };

You could try running lsmod to see whether there is a module for IPV6 loaded.

What does an ifconfig -a display?
Ted Nugent called. He wants his shirt back.
'chris'
Super Advisor

Re: DNS server doesn't work without listen-on-v6 { any; };

# lsmod

Module Size Used by Tainted: P
cisco_ipsec 378400 1
videodev 5600 0 (autoclean)
agpgart 35520 6 (autoclean)
isa-pnp 29704 0 (unused)
usbserial 18460 0 (autoclean) (unused)
parport_pc 25800 1 (autoclean)
lp 6240 0 (autoclean)
parport 22440 1 (autoclean) [parport_pc lp]
ipv6 134516 -1 (autoclean)
snd-intel8x0 19204 0
snd-pcm 62912 0 [snd-intel8x0]
snd-timer 11904 0 [snd-pcm]
snd-ac97-codec 31152 0 [snd-intel8x0]
snd-mpu401-uart 3360 0 [snd-intel8x0]
snd-rawmidi 13824 0 [snd-mpu401-uart]
snd-seq-device 4000 0 [snd-rawmidi]
snd 35940 0 [snd-intel8x0 snd-pcm snd-timer snd-ac97-codec snd-mpu401-uart snd-rawmidi snd-seq-device]
soundcore 3396 0 [snd]
mousedev 4148 0 (unused)
joydev 5632 0 (unused)
evdev 4032 0 (unused)
input 3104 0 [mousedev joydev evdev]
usb-uhci 22096 0 (unused)
ehci-hcd 16012 0 (unused)
usbcore 57868 1 [usbserial usb-uhci ehci-hcd]
raw1394 14548 0 (unused)
ieee1394 32880 0 [raw1394]
e1000 43812 1
lvm-mod 65412 0 (autoclean)
ext3 77288 5
jbd 45648 5 [ext3]
-----------------------------------------------------


# ifconfig -a

eth0 Link encap:Ethernet HWaddr 00:08:96:CD:AA:2F
inet addr:192.168.1.10 Bcast:192.168.1.255 Mask:255.255.252.0
inet6 addr: fe90::309:85ee:fede:aa2c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1356 Metric:1
RX packets:932979 errors:0 dropped:0 overruns:0 frame:0
TX packets:945034 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:305619569 (291.4 Mb) TX bytes:333701163 (318.2 Mb)
Interrupt:10 Base address:0xecc0 Memory:ff8e0000-ff900000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:336770 errors:0 dropped:0 overruns:0 frame:0
TX packets:336770 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:19911486 (18.9 Mb) TX bytes:19911486 (18.9 Mb)

sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Bill Thorsteinson
Honored Contributor

Re: DNS server doesn't work without listen-on-v6 { any; };

You have sit0 which indicates you have ipv6.
You may want to set the listener for ipv6
to localhost (::1).

'chris'
Super Advisor

Re: DNS server doesn't work without listen-on-v6 { any; };

this code:
------------------------------------
#listen-on port 53 { 127.0.0.1; };
listen-on port 53 { 192.168.1.10; };

#listen-on-v6 { any; };
------------------------------------
doesn't work !

but this one:
------------------------------------
listen-on port 53 { 127.0.0.1; };
listen-on port 53 { 192.168.1.10; };

#listen-on-v6 { any; };
------------------------------------
works well.

knows someone why ?
Chris Saunderson
Frequent Advisor

Re: DNS server doesn't work without listen-on-v6 { any; };

You have ipv6 as a module loaded, so you should be able to rmmod ipv6 and then retry your configuration and let us know whether it works or not.
Ted Nugent called. He wants his shirt back.
'chris'
Super Advisor

Re: DNS server doesn't work without listen-on-v6 { any; };

thanks, but
------------------------------------
listen-on port 53 { 127.0.0.1; };
listen-on port 53 { 192.168.1.10; };

#listen-on-v6 { any; };
------------------------------------

solved my problem.

greeting
chris