Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@s1:~# cat /etc/dhcp/dhclient.conf
- # Configuration file for /sbin/dhclient, which is included in Debian's
- # dhcp3-client package.
- #
- # This is a sample configuration file for dhclient. See dhclient.conf's
- # man page for more information about the syntax of this file
- # and a more comprehensive list of the parameters understood by
- # dhclient.
- #
- # Normally, if the DHCP server provides reasonable information and does
- # not leave anything out (like the domain name, for example), then
- # few changes must be made to this file, if any.
- #
- option rfc3442-classless-static-routes code 121 = array of unsigned integer 8;
- option rack code 225 = text;
- option cluster code 226 = text;
- send host-name = gethostname();
- request subnet-mask, broadcast-address, time-offset, routers,
- domain-name, domain-name-servers, domain-search, host-name,
- dhcp6.name-servers, dhcp6.domain-search,
- netbios-name-servers, netbios-scope, interface-mtu,
- rfc3442-classless-static-routes, ntp-servers,
- dhcp6.fqdn, dhcp6.sntp-servers, rack, cluster;
- prepend domain-name-servers 127.0.0.1; # << this is the line you need in dhclient. may not be needed if resolvconf is installed, I havent tested yet...
- root@s1:~# cat /etc/resolv.conf
- # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
- # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
- nameserver 127.0.0.1
- search tvoli
- # Resolvconf ends up like this. use localhost as resolver. Resolvconf takes care of lots of stuff when it comes to dhcp.
- root@s1:~# cat /etc/dnsmasq.d/10-consul
- server=/consul/127.0.0.1#8600
- root@s1:~# # Overrides default server in dnsmasq to send *.consul to some server and port. (consul client/agent/server running on localhost)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement