Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. ```
  2. $ ssh username@192.168.0.1
  3. $ sudo vi /etc/dnsmasq.d/dnsmasq.static.conf
  4. ```
  5.  
  6. Put there some hostnames <-> ip mappings:
  7.  
  8. ```
  9. address=/some.domain/192.168.0.123
  10. address=/some.other.domain/167.112.237.24
  11. ```
  12.  
  13. Save it the reload dnsmasq:
  14.  
  15. ```
  16. $ sudo /etc/init.d/dnsmasq force-reload
  17. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement