- Posts: 6
- Thank you received: 0
DNS reverse lookup
21 years 9 months ago #5
by Ilithios
WYSINWYG
DNS reverse lookup was created by Ilithios
Hello there, great site again and very good work [img]images/smiles/icon_smile.gif[/img]
i have some questions about reverse dns lookup. how does the whole reverse lookup system works? suppose i have some class c networks, how can i define which dns server will lookup for each one ( reverse ).
and one last question that is troubling me is this : let's suppose we have a class c network ( 255 ips ). and i have 2 nameservers. how can i have one of them reverse lookup some ips and the the other nameserver the rest of them ?
thank you [img]images/smiles/icon_smile.gif[/img]
i have some questions about reverse dns lookup. how does the whole reverse lookup system works? suppose i have some class c networks, how can i define which dns server will lookup for each one ( reverse ).
and one last question that is troubling me is this : let's suppose we have a class c network ( 255 ips ). and i have 2 nameservers. how can i have one of them reverse lookup some ips and the the other nameserver the rest of them ?
thank you [img]images/smiles/icon_smile.gif[/img]
WYSINWYG
21 years 9 months ago #6
by Manip
Replied by Manip on topic DNS reverse lookup
I am going to assume you are working in windows... to define which DNS server you will be using look under your 'Local Area Connection' > 'Internet Protocol (TCP/IP)' You will see Obtain DNS server address automatically, which generally means if you have a web proxy it will use the proxy specified by that.
To define a custom proxy change to 'Use The following DNS server addresses:' and enter a Primary, then a secondary (if you have it), the secondary is the backup if your first one goes down.
To do what you said (Have two DNS with separate records) you could split the computers on your network up and specify different DNS servers or have the primary DNS server point to the secondary DNS server to get address X.
1. Primary give me www.intranet.com
2. Ok you can find it by going and looking at another DNS server >> 10.0.0.2
3. Secondary DNS can I have www.intranet.com
4. Yes 10.0.0.100
To define a custom proxy change to 'Use The following DNS server addresses:' and enter a Primary, then a secondary (if you have it), the secondary is the backup if your first one goes down.
To do what you said (Have two DNS with separate records) you could split the computers on your network up and specify different DNS servers or have the primary DNS server point to the secondary DNS server to get address X.
1. Primary give me www.intranet.com
2. Ok you can find it by going and looking at another DNS server >> 10.0.0.2
3. Secondary DNS can I have www.intranet.com
4. Yes 10.0.0.100
- wrath_child
- Offline
- New Member
Less
More
- Posts: 9
- Thank you received: 0
21 years 9 months ago #7
by wrath_child
Replied by wrath_child on topic DNS reverse lookup
Hello,
say you are assigned addresses
range 1. 192.168.0.0/24
range 2. 192.168.1.0/24
and you have 2 DNS servers
DNS 1. ns1.yourdomain (10.0.0.1)
DNS 2. ns2.yourdomain (10.0.1.1)
now you want to configure reverse delegation for both ranges with the following settings:
Pri DNS for range 1 - DNS 1
Sec DNS for range 1 - DNS 2
and
Pri DNS for range 2 - DNS 2
Sec DNS for range 2 - DNS 1
--- named.conf on 10.0.0.1
zone "0.168.192.IN-ADDR.ARPA" {
type master;
file "0.rev";
};
zone "1.168.192.IN-ADDR.ARPA" {
type slave;
file "1.rev";
masters { 10.0.1.1 };
}
---
--- named.conf for 10.0.1.1
zone "0.168.192.IN-ADDR.ARPA" {
type slave;
file "0.rev";
masters { 10.0.0.1 };
};
zone "1.168.192.IN-ADDR.ARPA" {
type master;
file "1.rev";
}
---
0.rev and 1.rev files should contain records like:
SOA record here
...
1 IN PTR host1.
2 IN PTR host2.
...
after you have done configuration on your server dont forget to ask your ip addresses provider to update their nameservers for reverse delegation on your ip ranges.
Hope this helps.
say you are assigned addresses
range 1. 192.168.0.0/24
range 2. 192.168.1.0/24
and you have 2 DNS servers
DNS 1. ns1.yourdomain (10.0.0.1)
DNS 2. ns2.yourdomain (10.0.1.1)
now you want to configure reverse delegation for both ranges with the following settings:
Pri DNS for range 1 - DNS 1
Sec DNS for range 1 - DNS 2
and
Pri DNS for range 2 - DNS 2
Sec DNS for range 2 - DNS 1
--- named.conf on 10.0.0.1
zone "0.168.192.IN-ADDR.ARPA" {
type master;
file "0.rev";
};
zone "1.168.192.IN-ADDR.ARPA" {
type slave;
file "1.rev";
masters { 10.0.1.1 };
}
---
--- named.conf for 10.0.1.1
zone "0.168.192.IN-ADDR.ARPA" {
type slave;
file "0.rev";
masters { 10.0.0.1 };
};
zone "1.168.192.IN-ADDR.ARPA" {
type master;
file "1.rev";
}
---
0.rev and 1.rev files should contain records like:
SOA record here
...
1 IN PTR host1.
2 IN PTR host2.
...
after you have done configuration on your server dont forget to ask your ip addresses provider to update their nameservers for reverse delegation on your ip ranges.
Hope this helps.
21 years 9 months ago #8
by Ilithios
WYSINWYG
Replied by Ilithios on topic DNS reverse lookup
Thank you very much wrath_child, indeed it helped and thank you Manip though the question was more relevant to what wrath_child answered.
I have this last question. Suppose i have the network 192.168.0/24 and 192.168.0.1 is my primary dns server. I want for some particular IPs belonging to this range ( say for example 5 IPs ) do their reverse lookup by another nameserver ( no subnetting ).
Example :
for IPs : 192.168.0.0-249 i want my pri dns to do the reverse resolving
and for the IPs : 192.168.0.250-254 to have another dns do my reverse resolving ( the second dns is still in this network )
Is that possible and if so, how?
thank you again
I have this last question. Suppose i have the network 192.168.0/24 and 192.168.0.1 is my primary dns server. I want for some particular IPs belonging to this range ( say for example 5 IPs ) do their reverse lookup by another nameserver ( no subnetting ).
Example :
for IPs : 192.168.0.0-249 i want my pri dns to do the reverse resolving
and for the IPs : 192.168.0.250-254 to have another dns do my reverse resolving ( the second dns is still in this network )
Is that possible and if so, how?
thank you again
WYSINWYG
21 years 9 months ago #10
by Ilithios
WYSINWYG
Replied by Ilithios on topic DNS reverse lookup
Thanx again [img]images/smiles/icon_smile.gif[/img]
WYSINWYG
- wrath_child
- Offline
- New Member
Less
More
- Posts: 9
- Thank you received: 0
21 years 9 months ago #9
by wrath_child
Replied by wrath_child on topic DNS reverse lookup
Hello Ilithios,
The thing you need is called "Classless reverse delegation" and is described in document below:
www.faqs.org/rfcs/rfc2317.html
I don't think I can explain the subject better [img]images/smiles/icon_smile.gif[/img]
Best regards
The thing you need is called "Classless reverse delegation" and is described in document below:
www.faqs.org/rfcs/rfc2317.html
I don't think I can explain the subject better [img]images/smiles/icon_smile.gif[/img]
Best regards
Time to create page: 0.131 seconds