DNS views

Home Page Forums Network Management Networking DNS views

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #42104
    U2GB
    Member

    Hi,

    Can I implement dns views on zeroshell like bind do?

    I need that dns respond one answer if a question come from wan side and another if question come from lan side.

    Example:
    From WAN:

    nslookup http://www.midominio.com
    Address: xxx.xxx.xxx.xxx (my public address)

    From LAN:

    nslookup http://www.midominio.com
    Address: yyy.yyy.yyy.yyy (my server lan address)

    Thanks

    #49280
    atheling
    Member

    I guess that would be one solution to the problem of accessing your LAN located servers from inside the LAN. I did it differently:

    In your router area on the “virtual servers” use “any” interface and your external IP address to NAT requests to your server(s). That will get traffic to go to your servers regardless of the source (LAN or WAN).

    To get traffic to go back to your LAN clients from the server I then added the following to my “setup->startup/cron->NAT and Virtual servers script”

    #Fix issue with LAN clients accessing local servers with external IP addresses
    iptables -t nat -N custom_postroute
    iptables -t nat -A custom_postroute -s 10.7.52.0/24 -d 10.7.52.130 -j MASQUERADE
    iptables -t nat -A POSTROUTING --match state --state NEW -j custom_postroute

    (Your internal LAN will probably have a different network range)

    Now all the clients on my LAN can access my LAN based servers using their external IP address so I can have my DNS only serve up public addresses.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.