I am using a FreeBSD system as my router / gateway via PPP over ethernet to my ISP. When my system boots, it may not have the right time. The problem manifests in that named says "validating ./NS: verify failed due to bad signature (keyid=21831): RRSIG validity period has not begun". So - I need the system time set before I can start named. I think what I need to happen is
1) connect to the ISP and wait for the PPP link to come up
2) set up resolv.conf to include DNS servers from the ISP
3) run "ntpdate"
4) start named now that I have a valid time on the system
5) start ntpd to maintain the time
so - what's the best, most robust and stable way to get the system to do that?
Actually, it may be can be simpler than that. With the proper resolv.conf, it should be sufficient to just wait for the PPP link to come up. Just so long as either ntpdate or ntpd has set the system time before named tries to start, I think I'll be OK. I might not even need the "ntpdate" depending on the order these things happen. Now that I think of it - how do I even find out what order these things happen in? Maybe all I need is to change the PPP mode from "ddial" [sic] to "background"? I dunno - I'm a little lost here, which is why I need y'all.
1) connect to the ISP and wait for the PPP link to come up
2) set up resolv.conf to include DNS servers from the ISP
3) run "ntpdate"
4) start named now that I have a valid time on the system
5) start ntpd to maintain the time
so - what's the best, most robust and stable way to get the system to do that?
Actually, it may be can be simpler than that. With the proper resolv.conf, it should be sufficient to just wait for the PPP link to come up. Just so long as either ntpdate or ntpd has set the system time before named tries to start, I think I'll be OK. I might not even need the "ntpdate" depending on the order these things happen. Now that I think of it - how do I even find out what order these things happen in? Maybe all I need is to change the PPP mode from "ddial" [sic] to "background"? I dunno - I'm a little lost here, which is why I need y'all.