Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
BIND and IPv6 (SOLVED)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Kenji Miyamoto
Veteran
Veteran


Joined: 28 May 2005
Posts: 1452
Location: Looking over your shoulder.

PostPosted: Fri Dec 04, 2009 5:11 am    Post subject: BIND and IPv6 (SOLVED) Reply with quote

I've been trying to get BIND to work with IPv6, and seems to be all well and good, until I try to access it from another machine. It looks like it fails to bind to an IPv6 port if I don't have listen-on-v6 { any; } Here's what I was trying:
Code:
        listen-on-v6 {
                ::1;
                fc00:dead:beef:4747::1;
        };
With any, I get this:
Code:
tcp        0      0 192.168.0.1:53          0.0.0.0:*               LISTEN     
tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN     
tcp        0      0 :::53                   :::*                    LISTEN     
udp        0      0 192.168.0.1:53          0.0.0.0:*                           
udp        0      0 127.0.0.1:53            0.0.0.0:*                           
udp        0      0 :::53                   :::*
Without it, and with the snippet above, I get this:
Code:
tcp        0      0 192.168.0.1:53          0.0.0.0:*               LISTEN     
tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN     
udp        0      0 192.168.0.1:53          0.0.0.0:*                           
udp        0      0 127.0.0.1:53            0.0.0.0:*   
How do I tell it to bind to fc00:dead:beef:4747::1 (the IP address of one of its interfaces), since the above doesn't work?
_________________
[ Kawa-kun, new and improved!! ]

Alex Libman seems to be more of an anarchist than a libertarian.


Last edited by Kenji Miyamoto on Fri Dec 04, 2009 10:15 pm; edited 1 time in total
Back to top
View user's profile Send private message
luispa
Guru
Guru


Joined: 17 Mar 2006
Posts: 359
Location: España

PostPosted: Fri Dec 04, 2009 7:15 pm    Post subject: Reply with quote

I've it like this:
Code:
listen-on-v6 { ::1; 2001:ab0:0:21::1/64; };


And get this:
Code:
tcp6       0      0 ::1:53                  :::*                    LISTEN     26330/named         
tcp6       0      0 2001:ab0:0:21::1:53      :::*                    LISTEN     26330/named   

udp6       0      0 ::1:53                  :::*                               26330/named         
udp6       0      0 2001:ab0:0:21::1:53      :::*                               26330/named         


With any:
Code:
tcp6       0      0 :::53                   :::*                    LISTEN     26649/named         
udp6       0      0 :::53                   :::*                               26649/named     

Luis
Back to top
View user's profile Send private message
Kenji Miyamoto
Veteran
Veteran


Joined: 28 May 2005
Posts: 1452
Location: Looking over your shoulder.

PostPosted: Fri Dec 04, 2009 9:52 pm    Post subject: Reply with quote

It most definitely doesn't bind to any IPv6 addresses for me:
Code:
    listen-on {
        127.0.0.1;
        192.168.0.1/24;
    };
    listen-on-v6 {
        ::1;
        fc00:dead:beef:4747::1/120;
        // any;
    };
These are the only mentions of "listening"; ::1 isn't even bound to.
Code:
04-Dec-2009 13:50:35.297 loading configuration from '/etc/bind/named.conf'
04-Dec-2009 13:50:35.298 listening on IPv4 interface lo, 127.0.0.1#53
04-Dec-2009 13:50:35.299 listening on IPv4 interface eth1, 192.168.0.1#53
What do I do to fix this?

Here's the information for the interface:
Code:
eth1      Link encap:Ethernet  HWaddr 00:00:5A:00:03:4F
          inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fc00:dead:beef:4747::1/120 Scope:Global
          inet6 addr: fe80::200:5aff:fe00:34f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:206138 errors:0 dropped:0 overruns:0 frame:0
          TX packets:358848 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:12470279 (11.8 Mb)  TX bytes:454679127 (433.6 Mb)
          Interrupt:19
If I run BIND with -6, I get this:
Code:
04-Dec-2009 13:53:29.048 not listening on any interfaces

_________________
[ Kawa-kun, new and improved!! ]

Alex Libman seems to be more of an anarchist than a libertarian.
Back to top
View user's profile Send private message
Kenji Miyamoto
Veteran
Veteran


Joined: 28 May 2005
Posts: 1452
Location: Looking over your shoulder.

PostPosted: Fri Dec 04, 2009 10:06 pm    Post subject: Reply with quote

According to this O'Reilly snippet, listen-on-v6 can be either "none" or "any," and not a list of addresses. Is that true, or was support for a list added in a later version? I have 9.5.0_p2-r1 installed.

Yeah, that was it. I upgraded to BIND 9.61 and everything is good now.
_________________
[ Kawa-kun, new and improved!! ]

Alex Libman seems to be more of an anarchist than a libertarian.
Back to top
View user's profile Send private message
luispa
Guru
Guru


Joined: 17 Mar 2006
Posts: 359
Location: España

PostPosted: Sat Dec 05, 2009 9:11 am    Post subject: Reply with quote

Ok, great. That was it. I'm on 9.4.3_p4, which also works.

Luis
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum