Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 208529 - net-dns/bind-9.4.1_p1 startup problems on boot
Summary: net-dns/bind-9.4.1_p1 startup problems on boot
Status: VERIFIED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-02 01:04 UTC by Stefan Behte (RETIRED)
Modified: 2008-02-02 06:51 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Behte (RETIRED) gentoo-dev Security 2008-02-02 01:04:38 UTC
/etc/init.d/named always gets startet BEFORE net.ethX and thus port 53 only gets bound on 127.0.0.1 and not your ethX IP.

Looks like /etc/runlevels/default/ is used alphabetically?!

lrwxrwxrwx 1 root root 17 25. Jan 01:05 named -> /etc/init.d/named
lrwxrwxrwx 1 root root 20 19. Okt 2006  net.eth0 -> /etc/init.d/net.eth0

/etc/init.d/named has this:
depend() {
        need net
        use logger
        provide dns
}

but it does not work. It really sucks to have to start named manually after rebooting!
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2008-02-02 01:11:17 UTC
need net works perfectly fine and if net.lo satisfies net for you, then you need to configure your system more properly for your needs, depending on baselayout version you are using.

If you need support with this, see http://www.gentoo.org/main/en/support.xml, please don't use bugzilla for such things.

Comment 2 Stefan Behte (RETIRED) gentoo-dev Security 2008-02-02 01:24:53 UTC
Do I understand correctly, that net.eth0 should provide net and not net.lo?

To reproduce, do:

emerge '=net-dns/bind-9.4.1_p1'
in /etc/named/bind.conf, add the IP of eth0 in the listen line:
listen-on { 192.168.0.2; 127.0.0.1; };
rc-update add named default

so we have:

# rc-update show | grep net
               local |      default nonetwork
            net.eth0 |      default
              net.lo | boot
            netmount |      default
            net.ppp0 |      default

Then, named won't listen on 192.168.0.2 after rebooting.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2008-02-02 01:30:03 UTC
For starters, you failed to provide emerge --info, so there's noone to help you debug your issue with your configuration because we don't know your baselayout version.

As noted above, if works perfectly fine both with baselayout-1 and baselayout-2. With baselayout-1, see /etc/conf.d/rc; with baselayout-2, add services to runlevels as required for your needs.

Move support questions out of bugzilla, please, this is not a support forum.
Comment 4 Stefan Behte (RETIRED) gentoo-dev Security 2008-02-02 02:21:20 UTC
I use baselayout-1, in /etc/conf.d/rc:
RC_NET_STRICT_CHECKING="yes"
fixes this. The issues occured, because I have multiple NICs.

Sorry, I didn't know that and thought it was a bug in a startscript or something.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2008-02-02 06:51:30 UTC
Cool... Thanks for confirming that it really works and closing.