NSD not available??

Discussion in 'Linux VPS/Dedicated - cPanel' started by challgren, Jun 6, 2011.

  1. challgren

    challgren Member

    Ok so are there other people that can't use NSD because KnownHost insist on rewriting the resolv.conf on system reboot?? This is really frustrating that KnownHost will not allow users to use their own resolv.conf which forces me to use named which requires more system resources.
     
  2. challgren

    challgren Member

    And if you try to chattr +i /etc/resolv.conf you pretty much take the system down.
     
  3. KH-Paul

    KH-Paul CTO Staff Member

    This is not something that is specific to us - this is something that is done by Virtuozzo - it rewrites network configuration files (including resolv.conf) upon VPS reboot.
    If you want to have custom content in the /etc/resolv.conf file you can easily do so by adding something like this into your /etc/rc.local:

    echo "nameserver 4.4.4.1" > /etc/resolv.conf
    echo "nameserver 4.4.4.4" >> /etc/resolv.conf

    Hope this helps.
     
  4. challgren

    challgren Member

    Thanks that clears up how to use NSD on a KH VPS, but I'm kinda upset that I was told in ticket 171666 that it "is not possible on the VPS hosting plans"
     
  5. KH-Paul

    KH-Paul CTO Staff Member

    Thank you for pointing me to this ticket. I'll make sure everyone in our team is aware of how to get this done.
     
  6. challgren

    challgren Member

    Thanks man!!
     
  7. aww

    aww New Member

    But as the node management you can indeed change this behavior (and should). After the initial configuration for a VPS, critical files should never be touched again by the vps software.

    To fix this permanently on your nodes, simply edit the /etc/sysconfig/vz-scripts/[id].conf and remove the NAMESERVER line.
    Then the resolve.conf won't be touched when a vps reboots.

    The reason why this is so important is that BIND cannot be replaced by NSD because you (okay, vz) inject 127.0.0.1 into resolv.conf - on smaller VPS the BIND memory size is too large. At a minimum 127.0.0.1 should be removed.
     

Share This Page