Wednesday, 6 March 2019

router - Set up Split-horizon DNS at home

I have some services set up on my computers at home. Currently I use a little script to determine if I'm at home, and if so use a LAN IP, and if not use my router's WAN IP to connect to these services.


I would like to simply use DNS for this instead.


This is my router: http://netgear.com.au/home/products/wirelessrouters/work-and-play/DGN2200.aspx


I have considered installing this: http://sourceforge.net/projects/modfs/ but it appears to be based on the original version of the firmware, which I had to update in order to get VPN working.


Should I:



  1. Edit hosts file entries on all my computers

  2. Try and get my router to do some DNS (maybe with telnet?)

  3. install BIND on one of my machines and configure my router to point to this machine for DNS at home (tried this but couldn't find where to configure this)

  4. ditch my router and install some kind of router software on one of my machines, and then use that for DNS

  5. Some other option I haven't considered


Basically I want the following:


Outside the network (already works):



  • machine1.domain.com -> {WAN IP}

  • machine2.domain.com -> {WAN IP}


Inside the network:



  • machine1.domain.com -> 192.168.0.2

  • machine2.domain.com -> 192.168.0.6

No comments:

Post a Comment

How can I VLOOKUP in multiple Excel documents?

I am trying to VLOOKUP reference data with around 400 seperate Excel files. Is it possible to do this in a quick way rather than doing it m...