Advertisement
cetex

Untitled

Mar 11th, 2015
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.76 KB | None | 0 0
  1. root@s1:~# cat /etc/dhcp/dhclient.conf
  2. # Configuration file for /sbin/dhclient, which is included in Debian's
  3. # dhcp3-client package.
  4. #
  5. # This is a sample configuration file for dhclient. See dhclient.conf's
  6. # man page for more information about the syntax of this file
  7. # and a more comprehensive list of the parameters understood by
  8. # dhclient.
  9. #
  10. # Normally, if the DHCP server provides reasonable information and does
  11. # not leave anything out (like the domain name, for example), then
  12. # few changes must be made to this file, if any.
  13. #
  14.  
  15. option rfc3442-classless-static-routes code 121 = array of unsigned integer 8;
  16. option rack code 225 = text;
  17. option cluster code 226 = text;
  18.  
  19. send host-name = gethostname();
  20. request subnet-mask, broadcast-address, time-offset, routers,
  21. domain-name, domain-name-servers, domain-search, host-name,
  22. dhcp6.name-servers, dhcp6.domain-search,
  23. netbios-name-servers, netbios-scope, interface-mtu,
  24. rfc3442-classless-static-routes, ntp-servers,
  25. dhcp6.fqdn, dhcp6.sntp-servers, rack, cluster;
  26.  
  27. 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...
  28.  
  29.  
  30. root@s1:~# cat /etc/resolv.conf
  31. # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
  32. # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
  33. nameserver 127.0.0.1
  34. search tvoli
  35.  
  36. # Resolvconf ends up like this. use localhost as resolver. Resolvconf takes care of lots of stuff when it comes to dhcp.
  37.  
  38. root@s1:~# cat /etc/dnsmasq.d/10-consul
  39. server=/consul/127.0.0.1#8600
  40. 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