Resolving an internal IP address for a domain from an external DNS server?

Kaya Saman SamanKaya at netscape.net
Thu Jan 7 23:09:10 UTC 2010


Hi Kevin,

first up thanks for the response!

Secondly the non-recursive query you asked for shows this:

> % dig +norec rd1.optiplex-networks.com
>
> ; <<>> DiG 9.5.1-P2.1 <<>> +norec rd1.optiplex-networks.com
> ;; global options:  printcmd
> ;; connection timed out; no servers could be reached


Sorry for the bad explanation, literally what I want to do is this:

I would like to use my external DNS server located in another country 
with IP address: 81.178.2.118 to be able to resolve local IP addresses 
within my network. Currently I am using 192.168.1.0/24 network and mask 
(CIDR notation) in my current location and have my radio server located 
at IP 192.168.1.100.

Perhaps if I explain like this it maybe easier:

DNS server: 81.178.2.118 (remote machine)
Radio server: 192.168.1.100 (local LAN)
Laptop: 192.168.1.2 (local LAN)

I would like to resolve the domain name: rd1.optiplex-networks.com to 
192.168.1.100 but using the DNS server located at 81.178.2.118 whose DNS 
name is ns1.optiplex-networks.com

The issue is that I would like to use the same domain to resolve the 
services I run in the network located at 81.178.2.118 which includes 
mail, www....etc too. Meaning that www.optiplex-networks.com, 
mail.optiplex-networks.com etc... all points to 81.178.2.118, but then 
point rd1.optiplex-networks.com to 192.168.1.100!

For that I need to have a zone file which has the remote IP of 
81.178.2.118 in it for all domains/subdomains also point a record to my 
local radio server which is 192.168.1.100.

Currently I can resolve everything just the local IP and none of the 
logging I've activated is telling me what's blocking the system.

I mean I need dig to show something like this:

> % dig optiplex-networks.com            
>
> ; <<>> DiG 9.5.1-P2.1 <<>> optiplex-networks.com
> ;; global options:  printcmd
> ;; Got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 42121
> ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1
>
> ;; QUESTION SECTION:
> ;optiplex-networks.com.        IN    A
>
> ;; ANSWER SECTION:
> optiplex-networks.com.    86400    IN    A    81.178.2.118
>
> ;; AUTHORITY SECTION:
> optiplex-networks.com.    86400    IN    NS    ns1.optiplex-networks.com.
>
> ;; ADDITIONAL SECTION:
> ns1.optiplex-networks.com. 86400 IN    A    81.178.2.118
>
> ;; Query time: 79 msec
> ;; SERVER: 81.178.2.118#53(81.178.2.118)
> ;; WHEN: Fri Jan  8 00:55:45 2010
> ;; MSG SIZE  rcvd: 89

for the domain rd1.optiplex-networks.com but in the answer section have:

rd1.optiplex-networks.com. 86400 IN A 192.168.1.100

Currently as stated previously I used to have 2 views at the remote 
network; one for internal clients and one for external. Since I am 
trying to patch in my new network to the old network I created another 
view specifically for this new network.

The kiziltoprak view contains a master zone for this specific network 
only rather then tying this into my external view as I want to keep each 
entity separate.

I hope things make sense now??

Regards,

Kaya








More information about the bind-users mailing list