Hurricane Electric's IPv6 Tunnel Broker Forums

Advanced search  

News:

Welcome to Hurricane Electric's Tunnelbroker.net forums!

Author Topic: CentOS 5.5, IPv6-Only, Stateless Autoconfig and /etc/resolv.conf  (Read 5634 times)

jasonvp

  • Newbie
  • *
  • Posts: 8

Hey folks -

I've been experimenting here at home, trying to bring up an IPv6-only CentOS machine.  I've got autoconf working fine: the machine picks up its IP configuration for eth0 as well as the default route.  However, I haven't figured out a way to automatically add the DNS server to /etc/resolv.conf.

I'm running the latest RADVD daemon which does support RDNS.  But I'm pretty sure the kernel on CentOS doesn't.  My latest attempt as been with using dhcp6c and dhcp6s, just to configure the DNS server.  But I can't get it to work.  The server runs, the client kicks in and makes the request, but nothing gets dumped into /etc/resolv.conf.

The client's conf file is super-simple:
Code: [Select]
$ cat /etc/dhcp6c.conf
#
# See dhcp6c.conf(5) man page for details.
#

interface eth0 {
        information-only;
        request domain-name-servers;
};

On the server side, again, very simple:
Code: [Select]
$ cat dhcp6s.conf
option dns_servers 2001:470:e2f8:6969:20c:29ff:fe6d:5115 lateapex.net;
send information-only;

But nothing.  Is there something I'm missing or doing wrong?  Yes, I can easily add a static /etc/resolv.conf.  But I really want to see this working automatically, if possible.

Thanks.

jas
Logged

kriteknetworks

  • Sr. Member
  • ****
  • Posts: 260
    • aRDy Music
Re: CentOS 5.5, IPv6-Only, Stateless Autoconfig and /etc/resolv.conf
« Reply #1 on: January 08, 2011, 09:02:30 PM »

Instead of using dhcp, configure radvd to send rdnss data, an ipv6 nameserver IP, then install rdnssd on centos. rdnssd will pick up the nameserver IP from radvd, and write resolv.conf.
Logged

jasonvp

  • Newbie
  • *
  • Posts: 8
Re: CentOS 5.5, IPv6-Only, Stateless Autoconfig and /etc/resolv.conf
« Reply #2 on: January 08, 2011, 09:48:14 PM »

Instead of using dhcp, configure radvd to send rdnss data, an ipv6 nameserver IP, then install rdnssd on centos. rdnssd will pick up the nameserver IP from radvd, and write resolv.conf.

I already had radvd sending the data, I just didn't know what process was required to make use of it.  Thanks for the pointer, that did the trick.

Curious if anyone else has bothered trying to get dhcpv6 to work with just DNS information?

Thanks!

jas
Logged

protologic

  • Newbie
  • *
  • Posts: 1
Re: CentOS 5.5, IPv6-Only, Stateless Autoconfig and /etc/resolv.conf
« Reply #3 on: January 17, 2011, 01:33:22 PM »

I did this on FreeBSD and I struggled with this for hours in my own setup. The solution I found was to send the OtherConfigurationServer flag in my RA solicitation messages to indicate to the client that it should do a dhcpv6 request to receive information for DNS/NIS...

From what I'm seeing in the radvd.conf man page (I'm using rtadvd on FreeBSD which is different), it looks like you'll need to set the following to get it working:

  AdvOtherConfigFlag on

Logged