Great question. The DNS resolver checks to see if it the named being queried is its own, then the local Host file first, cache, and then a DNS query.
I'm wondering if you could also use a secondary or tertiary DNS entry which would only be in your smkokeping host. (This way you could run multiple smokeping hosts and only have to run one script. The on this DNS server host run the script to populate the DNS table. Let us know how it works out for you. From: smokeping-users [mailto:[email protected]] On Behalf Of Joshua Cameron Sent: Sunday, April 10, 2016 4:36 PM To: [email protected] Subject: Re: [smokeping-users] DHCP handling Sorry, I mean whenever a device is added or removed from the network I'll have to have the script re-write the config file then restart the service. Is that going to cause any issues on Smokeping side? Restarting every couple days? I don't think that it would but thought I'd ask. From: smokeping-users [mailto:[email protected]] On Behalf Of Joshua Cameron Sent: Monday, April 11, 2016 9:33 AM To: [email protected] <mailto:[email protected]> Subject: Re: [smokeping-users] DHCP handling Douglas, Script to work with the host file sounds great. Did a few tests with that idea and it looks like it'll work. Much appreciated. When the host is passed into FPing, will it check the hostfile everytime it's run or will it cache the DNS requests? Would I have to flush DNS cache whenever I change host file if something changes IP? Whenever something changes IP address, I'll have to have the script re-write the config file for Smokeping then restart the service. Is that going to cause any issues on Smokeping side? I'm just going to do this with my host file: IPADDRESS MAC.tld.com.au Then put the MAC.tld.com.au as the host in the Smokeping config file. Joshua Cameron Systems Administrator From: Douglas Spindler [mailto:[email protected]] Sent: Monday, April 11, 2016 9:02 AM To: Joshua Cameron; [email protected] <mailto:[email protected]> Subject: RE: [smokeping-users] DHCP handling BOOTP? Or use a script to populate the host file. From: smokeping-users [mailto:[email protected]] On Behalf Of Joshua Cameron Sent: Sunday, April 10, 2016 3:56 PM To: [email protected] <mailto:[email protected]> Subject: [smokeping-users] DHCP handling Hey, I use Smokeping for about 40 devices at the moment, but we've got around 200 more on the network I'd like to add to it. However some of the devices I want to monitor on our network can have dynamic IP addresses(DHCP), beside setting everything to static IPs which is never gonna happen, is there a way to keep the ping history data in Smokeping associated to a device across IP address changes? Some sort of MAC address lookup or similar? Joshua Cameron Systems Administrator
_______________________________________________ smokeping-users mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
