[DNS] Setting up multiple domains with dnsmasq



Greetings,

I am using Debian and dnsmasq as DNS/DHCP server. The machine is used as a
gateway and there are several other servers in local network. Can dnsmasq
do the following thing - domain x.com should be redirected to 10.x.x.x,
domain y.com to 10.y.y.y and domain z.com to 10.z.z.z in local network.

I have tried to modify dnsmasq.conf with the following settings:

address=/x.com/10.x.x.x
address=/y.com/10.y.y.y
address=/z.com/10.z.z.z

All domains have properly set DNS server (that is, IP address of the
gateway), however, these settings only apply to the *local* network -
these domains, when accessed from the Internet, all give the same thing -
services on the gateway.

Can dnsmasq do what I want or it will be necessary to use bind9?

TIA!

--
Everything will be okay
in the end.
If it's not okay
it's not the end!
.



Relevant Pages

  • Routed-Subnet problem
    ... Subnet Mask ... Default Gateway ... Both Servers are not reachable from local network and ... With remote desktop connection I get an error RPC server is ...
    (microsoft.public.windows.server.networking)
  • Re: DHCP workstations cant access internet Static can
    ... This is usually caused by an incorrect default gateway setting. ... To access the Internet the default gateway address needs to be the local address of your gateway router (unless you are using a proxy server). ... systems can access the local network, but can not access the internet. ...
    (microsoft.public.windows.server.networking)
  • getting pxelinux to work
    ... I am wanting to run an IBM U47 as a server and I am wanting it to boot ... Here is the config for DNSMAsq: ... DNSMasq Configuration Starts Here ... If you have more than one network, ...
    (Ubuntu)
  • RE: IPNAT / IPF / rdr issue
    ... All your clients are on the LAN behind the gateway correct. ... > request has to go to your ISP DNS server to get your public ip ... > block out log first quick on dc0 all ...
    (freebsd-questions)
  • NetDiag Default Gateway Error -->DcDiag Advertising Error
    ... NetDiag Default Gateway Error -->DcDiag Advertising Error ... I'm having problems with time sync in my AD. Server which should be time ... Starting test: CrossRefValidation ...
    (microsoft.public.windows.server.active_directory)