Adding IPv6 address to DNS general setup crashes dhcpd service



  • Under System -> General Setup i've configured the usual 3 dns servers:

    • 8.8.8.8 - Google primary public DNS server

    • 8.8.4.4 - Google secondary public DNS server

    • 74.82.42.42 - Hurricane Electric IPv4 DNS server

    and that works great; the clients are given these DNS entries as DNS servers.

    Now i want to include an IPv6 DNS server:

    • 2001:470:20::2 - Hurricane Electric IPv6 DNS server

    But when i do that, the dhcpd DHCP service crashes;

    dhcpd: /etc/dhcpd.conf line 19: semicolon expected.
    dhcpd: option domain-name-servers 8.8.8.8,8.8.4.4,74.82.42.42,2001:
    dhcpd: ^
    dhcpd: Configuration file errors encountered -- exiting
    
    

    Is it wrong to be trying to use an IPv6 DNS server?

    My goal is to transition entirely to IPv6; starting with serving IPv6 DNS servers.

    Edit: 2.1-RELEASE (i386) built on Wed Sep 11 18:16:22 EDT 2013


  • LAYER 8 Global Moderator

    So you want to get an ipv6 server to a box that is running ipv4 dhcp?

    Dns is not handed out via dhcpv6 to dhcpv4 clients..  So I am confused what you expect to happen here?

    an IPv4 box has little use for a ipv6 dns server - so I can understand why it might crash.

    Its find if you want your pfsense box that has dhcpv6 address to use ipv6 dns – but you can not hand iput ipv6 address to ipv4 dhcp client.



  • @johnpoz:

    Dns is not handed out via dhcpv6 to dhcpv4 clients..  So I am confused what you expect to happen here?

    i would want the DHCP (v4-only) server to hand out the IPv4 DNS servers from the General Setup page:

    (without crashing).

    And i would want the DHCP (v6-capable) server to hand out DNS servers from the General Setup page:

    There is a workaround for the IPv4 dhcpd: override the DNS server's served by the IPv4 DHCP server so it does not crash.


  • LAYER 8 Global Moderator

    Well that makes more sense and I agree with you.. So pfsense that might have both ipv4 and ipv6 -so for its dns you can setup dns servers that are both ipv4 and ipv6 and you don't dhcpd to crash because of that..

    It should say hey only look at the ipv4 dns that is listed to hand out if not setting specific dns in the scope.


Log in to reply