On Mon, 2005-12-12 at 16:30, John Joseph wrote:
> Hi All
> I would like to do a dns setting , such that
> any request gets resolved to one fixed IP address
> ie if I give www.google.com ,
> www.yahoo.com , asd.net ,lkj.ae all this should get
> resolved to a single IP address
> I am using RHEL-4
> I would request guidance , for this
> Thanks
>
> Joseph
You would need something like this in your /var/named/<zone> file:
www,yahoo.com 1D IN A 192.168.0.5
www.google.com IN A 192.168.0.5
www.asd.net IN A 192.168.0.5
You also need to create a reverse zone file if you want to resolve IP
addresses to hostnames.
5 IN PTR www.yahoo.com.
5 IN PTR www.google.com.
Do not forget the trailing dot!
Apart from that, you *must* also edit your /etc/named.conf to have a
section like this:
zone "yahoo.com" IN {
type master;
file "<your-zone-file-in-/var/named>";
allow-update { none; };
create similar entries for google.com and asd.net
If you need reverse lookups, then you also need to have a section like
this:
zone "0.168.192.in-addr.arpa" IN {
type master;
file "<your-reverse-zone-file-in-/var/named>";
allow-update { none; };
I know its kind of difficult to comprehend this, so I suggest you read
some docs on DNS/BIND. O'Reilly's DNS and Bind is a wonderful book on
the topic.
Regards,
NMK.
-----------------------------------------------------------------------
The Information Revolution will be fought on the command line. -- From a
Slashdot.org post
------------------------ Yahoo! Groups Sponsor --------------------~-->
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/I258zB/QnQLAA/TtwFAA/0XFolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/dubailug/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/