Advertisement
Guest User

Untitled

a guest
Oct 25th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. # dnsmasq --no-daemon --log-queries &
  2. # dig +short @localhost mysite.com
  3. 1.1.1.1
  4.  
  5. # dnsmasq --no-daemon --log-queries &
  6. dig +short mysite
  7. 2.2.2.2
  8.  
  9. # cat /etc/dnsmasq.conf
  10. server=$MY_IP
  11. no-hosts
  12. addn-hosts=/etc/dnsmasq.hosts
  13.  
  14. # cat /etc/dnsmasq.conf
  15. 1.1.1.1 www.mysite.com
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement