- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: DNS config
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2001 06:32 AM
10-30-2001 06:32 AM
Here's my situation. I have a single network, with many PC hosts and one unix server running sendmail. Currently all hosts use a name server out on the internet to resolve names.
I am setting up DNS on the unix server. I want my DNS to resolve all local names, and then defer to the outside DNS server when the local can't resolve.
My internet provider has the zone files for my domain name, but we only have one public address (NAT is used) and all incoming MX packets are passed to my unix server.
I do not want my internal hosts to be known to the outside.
Questions:
1. Am I correct in thinking that my DNS server will be a primary master for my domain, and be the SOA?
2. What configuration in DNS tells the thing when and where to go get DNS info from the outside DNS server, if the request is not resolved locally?
3. When I run hosts_to_named, it puts an MX record in the db file for every host. Only the unix server receives mail, should those other MX records be removed?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2001 06:51 AM
10-30-2001 06:51 AM
Solution1. yes your unix box can be primary server. You are on correct path.
2. forwarder ip_address_of_internet_provider
statment on optinn clause in /etc/named.conf file will take care the forwardig issue. For example
options {
check-names master ignore;
check-names response ignore;
check-names slave ignore;
directory "/usr/local/named";
forwarders {
IP_of_ISP;
};
};
3. you can set your dns server as primary mail server and point all hosts to there. you need MX entry in db file with you dns name. example
IN MX 20 server1.vdgc.com.
*use bind8.2.3 or bind9.x do not use old bind4.x.
In your client systems you just need
/etc/resolv.conf file with following two entry
doamin domain_name
nameserver ip_of_server1
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2001 06:54 AM
10-30-2001 06:54 AM
Re: DNS config
2. db.root file that has the information about the root servers will take care of DNS resolutions outside your domain.
3. Not required. But if you are particular you can use -m switch to specify the weight of your unix server. If you don't want, you can specify -M along with hosts_to_named command line not to create MX records for each host.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2001 06:55 AM
10-30-2001 06:55 AM
Re: DNS config
Your concepts on DNS are correct, But I suggest you to read following link.
http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/J2776-90008/J2776-90008_top.html&con=/hpux/onlinedocs/J2776-90008/00/00/20-con.html&toc=/hpux/onlinedocs/J2776-90008/00/00/20-toc.html&searchterms=DNS&queryid=20011030-065719
Goodluck,
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2001 06:59 AM
10-30-2001 06:59 AM
Re: DNS config
Also see this document
http://us-support.external.hp.com/cki/bin/doc.pl/sid=ca2a21501578a76a36/screen=ckiSearchResults?mode=id&searchString=KBAN00000292
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2001 08:06 AM
10-30-2001 08:06 AM
Re: DNS config
We use forwarders to our ISP or outside DNS server.
If you are using named.conf, this should look like:
options { directory "/var/named"; forward only; forwarders { IPOFYOURISP;
SECONDARYIPOFYOURISP;
}; };
Then in your definition of your internal domain, you might want to use a forwarders {}; option so that lookups within your domain that fail are not forwarded and it also makes it possible to have subdomains for your internal domain. This is assuming you are using at least BIND 8.2.2
Example:
zone "mydomain" {
type master;
file db.mydomain;
forwarders {};
};
I highly recommend getting the book DNS&Bind 4th Edition from O'Reilly. Anyone playing with DNS should have a copy.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2001 10:43 AM
10-30-2001 10:43 AM
Re: DNS config
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2001 06:18 AM
11-07-2001 06:18 AM
Re: DNS config
One thing though, my sendmail configuration is a little complex, and DNS needs to be configured to match.
sendmail has been told to accept mail for three domains, and my internet provider is passing incoming MX packets for all three names on to my unix server for sendmail.
Additionally, sendmail is converting outgoing mail for certain users so that mail appears to be coming from one domain or the other, depending on the user (via maildrops etc).
The effect is that for one public IP address we appear to be three companies with seperate mail servers, three domains.
This all works fine - except for DNS, which now needs to resolve all three domain names to the same address, for -internal- calls to DNS.
Before I set up DNS, it was resolved easily in the hosts file with aliases:
theserver domain1.com domain2.com
But the hosts_to_named script gave an error on the qualified domains-as-aliases and did not bring them into the DNS database.
So now an internal user sends mail to john@domain2.com --- internal DNS can't resolve, forwards it to outside DNS server, gets the public IP address returned, and mails an internal email to the outide public IP.
Would prefer that all three domains get a return from my internal DNS, showing the private IP address of the sendmail server.
Sorry for being so verbose, any assistance woudl be appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2001 11:08 AM
11-07-2001 11:08 AM
Re: DNS config
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2001 11:27 AM
11-07-2001 11:27 AM
Re: DNS config
For example, in the file: domain1.com
sales01 IN A 192.10.10.10
sales1 IN CNAME sals01.domain1.com
That's what you refer to.
But I'm trying to get
domain1.com
domain2.com
domain3.com
...all to resolve to the same address. I meant this to be for email only but I suppose that could be extended to mean that:
sales01.domain1.com
sales01.domain2.com
sales01.domain3.com
...would also resolve to the same address (since they really are the same host).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2001 06:24 AM
11-08-2001 06:24 AM
Re: DNS config
For example, in the file: db.domain1.com
Also I'm sorry now that I have a rabbit symbol on this issue as I'd like some input on the last few posts. Need my local DNS server to resolve three domain names to the same address before going to a forwarder for resolution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2001 07:57 AM
11-08-2001 07:57 AM
Re: DNS config
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2001 10:41 AM
11-08-2001 10:41 AM
Re: DNS config
db.127.0.0
db.192.10.10
db.domain1
db.domain2
db.domain3
db.cache
Right now my named.boot has entries like this:
primary 0.0.127.IN-ADDR-ARPA db.127.0.0
primary domain1.com db.domain1
primary 10.10.192.IN-ADDR-ARPA db.192.10.10
forwarders 000.000.000.000
cache . db.cache
Would I just add two more lines for domain2 and domain3?
And, would the db.domain1, db.domain2, and db.domain3 files look nearly the same, since they are physically the same hosts?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2001 10:47 AM
11-08-2001 10:47 AM
Re: DNS config
Then test with nslookup, host.domain1, host.domain2 and host.domain3 will all point to the same IP.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2001 12:23 PM
11-08-2001 12:23 PM
Re: DNS config
By the way, I notice that many of the messages here refer to BIND 8, I called HP and asked - since I am running HP-UX 10.20 they recommend BIND 4.9.7 with patch PHNE_23277, not BIND 8. I understand that there were some security issues with BIND 4, but that is what HP recommended.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2001 01:59 PM
11-08-2001 01:59 PM
Re: DNS config
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2001 02:32 PM
11-08-2001 02:32 PM
Re: DNS config
db.domain1
And, in the named.boot file these three lines:
primary domain1.com db.domain1
primary domain2.com db.domain1
primary domain3.com db.domain1
I was glad this worked; it means I only change one zone file instead of three, when an address change occurs. By doing this, the postmaster authority is the same for all three etc, but in my case this is acceptable.
Thanks for your assistance Kevin and those above, well done.