<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: DNS config in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/dns-config/m-p/2604011#M34799</link>
    <description>Your DNS server will be the primary.  If you do not want your domain to be known by the outside world, it probably won't work to rely on the root servers and usually in this situation you are behind a firewall.  There are some options in which using the root servers will work, but IMO they're not appropriate for internal DNS configurations.  &lt;BR /&gt;&lt;BR /&gt;We use forwarders to our ISP or outside DNS server.&lt;BR /&gt;&lt;BR /&gt;If you are using named.conf, this should look like:&lt;BR /&gt;&lt;BR /&gt;options {     directory "/var/named";                        forward only;                                       forwarders {                                              IPOFYOURISP;&lt;BR /&gt;SECONDARYIPOFYOURISP;                       &lt;BR /&gt;};                                             };&lt;BR /&gt;&lt;BR /&gt;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                &lt;BR /&gt;Example:&lt;BR /&gt;&lt;BR /&gt;zone "mydomain" {&lt;BR /&gt;type master;&lt;BR /&gt;file db.mydomain;&lt;BR /&gt;forwarders {};&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;I highly recommend getting the book DNS&amp;amp;Bind 4th Edition from O'Reilly. Anyone playing with DNS should have a copy.&lt;BR /&gt;                                                                                 &lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 30 Oct 2001 16:06:49 GMT</pubDate>
    <dc:creator>Bernie Vande Griend</dc:creator>
    <dc:date>2001-10-30T16:06:49Z</dc:date>
    <item>
      <title>DNS config</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dns-config/m-p/2604006#M34794</link>
      <description>I have posted similar questions some time ago but now can't seem to locate them via search, here.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;I do not want my internal hosts to be known to the outside.&lt;BR /&gt;&lt;BR /&gt;Questions:&lt;BR /&gt;&lt;BR /&gt;1. Am I correct in thinking that my DNS server will be a primary master for my domain, and be the SOA?&lt;BR /&gt;&lt;BR /&gt;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?&lt;BR /&gt;&lt;BR /&gt;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?&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Oct 2001 14:32:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dns-config/m-p/2604006#M34794</guid>
      <dc:creator>Fred Martin_1</dc:creator>
      <dc:date>2001-10-30T14:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: DNS config</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dns-config/m-p/2604007#M34795</link>
      <description>Hi Fred,&lt;BR /&gt;1. yes your unix box can be primary server. You are on correct path.&lt;BR /&gt;2. forwarder ip_address_of_internet_provider&lt;BR /&gt;   statment on optinn clause in /etc/named.conf file will take care the forwardig issue. For example&lt;BR /&gt;options {&lt;BR /&gt;        check-names master ignore;&lt;BR /&gt;        check-names response ignore;&lt;BR /&gt;        check-names slave ignore;&lt;BR /&gt;        directory "/usr/local/named";&lt;BR /&gt;        forwarders {&lt;BR /&gt;                IP_of_ISP;&lt;BR /&gt;        };&lt;BR /&gt;};&lt;BR /&gt;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&lt;BR /&gt;IN      MX      20 server1.vdgc.com.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;*use bind8.2.3 or bind9.x do not use old bind4.x. &lt;BR /&gt;&lt;BR /&gt;In your client systems you just need&lt;BR /&gt;/etc/resolv.conf file with following two entry&lt;BR /&gt;doamin domain_name&lt;BR /&gt;nameserver   ip_of_server1&lt;BR /&gt;&lt;BR /&gt;Sachin&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Oct 2001 14:51:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dns-config/m-p/2604007#M34795</guid>
      <dc:creator>Sachin Patel</dc:creator>
      <dc:date>2001-10-30T14:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: DNS config</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dns-config/m-p/2604008#M34796</link>
      <description>1. Yes. Your name server will be the primary for your domain.&lt;BR /&gt;2. db.root file that has the information about the root servers will take care of DNS resolutions outside your domain. &lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Tue, 30 Oct 2001 14:54:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dns-config/m-p/2604008#M34796</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2001-10-30T14:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: DNS config</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dns-config/m-p/2604009#M34797</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Your concepts on DNS  are correct, But I suggest you to read following link. &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/J2776-90008/J2776-90008_top.html&amp;amp;con=/hpux/onlinedocs/J2776-90008/00/00/20-con.html&amp;amp;toc=/hpux/onlinedocs/J2776-90008/00/00/20-toc.html&amp;amp;searchterms=DNS&amp;amp;queryid=20011030-065719" target="_blank"&gt;http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/J2776-90008/J2776-90008_top.html&amp;amp;con=/hpux/onlinedocs/J2776-90008/00/00/20-con.html&amp;amp;toc=/hpux/onlinedocs/J2776-90008/00/00/20-toc.html&amp;amp;searchterms=DNS&amp;amp;queryid=20011030-065719&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Goodluck,&lt;BR /&gt;-USA..</description>
      <pubDate>Tue, 30 Oct 2001 14:55:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dns-config/m-p/2604009#M34797</guid>
      <dc:creator>Uday_S_Ankolekar</dc:creator>
      <dc:date>2001-10-30T14:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: DNS config</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dns-config/m-p/2604010#M34798</link>
      <description>Hi, Again,&lt;BR /&gt;Also see this document &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://us-support.external.hp.com/cki/bin/doc.pl/sid=ca2a21501578a76a36/screen=ckiSearchResults?mode=id&amp;amp;searchString=KBAN00000292" target="_blank"&gt;http://us-support.external.hp.com/cki/bin/doc.pl/sid=ca2a21501578a76a36/screen=ckiSearchResults?mode=id&amp;amp;searchString=KBAN00000292&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;-USA..</description>
      <pubDate>Tue, 30 Oct 2001 14:59:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dns-config/m-p/2604010#M34798</guid>
      <dc:creator>Uday_S_Ankolekar</dc:creator>
      <dc:date>2001-10-30T14:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: DNS config</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dns-config/m-p/2604011#M34799</link>
      <description>Your DNS server will be the primary.  If you do not want your domain to be known by the outside world, it probably won't work to rely on the root servers and usually in this situation you are behind a firewall.  There are some options in which using the root servers will work, but IMO they're not appropriate for internal DNS configurations.  &lt;BR /&gt;&lt;BR /&gt;We use forwarders to our ISP or outside DNS server.&lt;BR /&gt;&lt;BR /&gt;If you are using named.conf, this should look like:&lt;BR /&gt;&lt;BR /&gt;options {     directory "/var/named";                        forward only;                                       forwarders {                                              IPOFYOURISP;&lt;BR /&gt;SECONDARYIPOFYOURISP;                       &lt;BR /&gt;};                                             };&lt;BR /&gt;&lt;BR /&gt;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                &lt;BR /&gt;Example:&lt;BR /&gt;&lt;BR /&gt;zone "mydomain" {&lt;BR /&gt;type master;&lt;BR /&gt;file db.mydomain;&lt;BR /&gt;forwarders {};&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;I highly recommend getting the book DNS&amp;amp;Bind 4th Edition from O'Reilly. Anyone playing with DNS should have a copy.&lt;BR /&gt;                                                                                 &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Oct 2001 16:06:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dns-config/m-p/2604011#M34799</guid>
      <dc:creator>Bernie Vande Griend</dc:creator>
      <dc:date>2001-10-30T16:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: DNS config</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dns-config/m-p/2604012#M34800</link>
      <description>Thank you all; you've helped me conquer some fears and I'll go ahead and set it up.  I have the O'Reilly DNS book here to refer to as well so I should be in good shape.  If I have troubles though, I'll be back :)&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Oct 2001 18:43:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dns-config/m-p/2604012#M34800</guid>
      <dc:creator>Fred Martin_1</dc:creator>
      <dc:date>2001-10-30T18:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: DNS config</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dns-config/m-p/2604013#M34801</link>
      <description>Ok I'm back.  I set up DNS and it all worked very well, when I used debug to follow some trails it showed that name resolutions were properly forwarded, etc.&lt;BR /&gt;&lt;BR /&gt;One thing though, my sendmail configuration is a little complex, and DNS needs to be configured to match.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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).&lt;BR /&gt;&lt;BR /&gt;The effect is that for one public IP address we appear to be three companies with seperate mail servers, three domains.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Before I set up DNS, it was resolved easily in the hosts file with aliases:&lt;BR /&gt;&lt;BR /&gt;  theserver domain1.com domain2.com&lt;BR /&gt;&lt;BR /&gt;But the hosts_to_named script gave an error on the qualified domains-as-aliases and did not bring them into the DNS database.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Would prefer that all three domains get a return from my internal DNS, showing the private IP address of the sendmail server.&lt;BR /&gt;&lt;BR /&gt;Sorry for being so verbose, any assistance woudl be appreciated.&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Nov 2001 14:18:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dns-config/m-p/2604013#M34801</guid>
      <dc:creator>Fred Martin_1</dc:creator>
      <dc:date>2001-11-07T14:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: DNS config</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dns-config/m-p/2604014#M34802</link>
      <description>an alias in DNS is called a CNAME record. You can have unlimited number of aliases for a hostname. One hostname is the primary, so it has the PTR records pointing to it, and all the others are CNAME records. Do not point your MX record at a CNAME however, this is not recommended.</description>
      <pubDate>Wed, 07 Nov 2001 19:08:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dns-config/m-p/2604014#M34802</guid>
      <dc:creator>Kevin Wright</dc:creator>
      <dc:date>2001-11-07T19:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: DNS config</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dns-config/m-p/2604015#M34803</link>
      <description>I understand you can have CNAMEs for hosts in a domain; but what I'm talking about is an alias for the domain - so I'm not sure that CNAMEs apply.&lt;BR /&gt;&lt;BR /&gt;For example, in the file:  domain1.com&lt;BR /&gt;&lt;BR /&gt;  sales01  IN  A  192.10.10.10&lt;BR /&gt;  sales1   IN  CNAME sals01.domain1.com&lt;BR /&gt;&lt;BR /&gt;That's what you refer to.&lt;BR /&gt;&lt;BR /&gt;But I'm trying to get&lt;BR /&gt;&lt;BR /&gt;  domain1.com&lt;BR /&gt;  domain2.com&lt;BR /&gt;  domain3.com&lt;BR /&gt;&lt;BR /&gt;...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:&lt;BR /&gt;&lt;BR /&gt;  sales01.domain1.com&lt;BR /&gt;  sales01.domain2.com&lt;BR /&gt;  sales01.domain3.com&lt;BR /&gt;&lt;BR /&gt;...would also resolve to the same address (since they really are the same host).&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Nov 2001 19:27:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dns-config/m-p/2604015#M34803</guid>
      <dc:creator>Fred Martin_1</dc:creator>
      <dc:date>2001-11-07T19:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: DNS config</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dns-config/m-p/2604016#M34804</link>
      <description>Ok that line above should read:&lt;BR /&gt;&lt;BR /&gt;  For example, in the file:  db.domain1.com&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;</description>
      <pubDate>Thu, 08 Nov 2001 14:24:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dns-config/m-p/2604016#M34804</guid>
      <dc:creator>Fred Martin_1</dc:creator>
      <dc:date>2001-11-08T14:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: DNS config</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dns-config/m-p/2604017#M34805</link>
      <description>You should have a separate zone file for each of your domains..so why don't you just point the A records to the same IP??</description>
      <pubDate>Thu, 08 Nov 2001 15:57:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dns-config/m-p/2604017#M34805</guid>
      <dc:creator>Kevin Wright</dc:creator>
      <dc:date>2001-11-08T15:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: DNS config</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dns-config/m-p/2604018#M34806</link>
      <description>Ok, verify this for me then.  So in /etc/named.data I would need the following files (for example):&lt;BR /&gt;&lt;BR /&gt;db.127.0.0&lt;BR /&gt;db.192.10.10&lt;BR /&gt;db.domain1&lt;BR /&gt;db.domain2&lt;BR /&gt;db.domain3&lt;BR /&gt;db.cache&lt;BR /&gt;&lt;BR /&gt;Right now my named.boot has entries like this:&lt;BR /&gt;&lt;BR /&gt;primary  0.0.127.IN-ADDR-ARPA db.127.0.0&lt;BR /&gt;primary  domain1.com db.domain1&lt;BR /&gt;primary  10.10.192.IN-ADDR-ARPA db.192.10.10&lt;BR /&gt;forwarders 000.000.000.000&lt;BR /&gt;cache . db.cache&lt;BR /&gt;&lt;BR /&gt;Would I just add two more lines for domain2 and domain3?&lt;BR /&gt;&lt;BR /&gt;And, would the db.domain1, db.domain2, and db.domain3 files look nearly the same, since they are physically the same hosts?&lt;BR /&gt;</description>
      <pubDate>Thu, 08 Nov 2001 18:41:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dns-config/m-p/2604018#M34806</guid>
      <dc:creator>Fred Martin_1</dc:creator>
      <dc:date>2001-11-08T18:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: DNS config</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dns-config/m-p/2604019#M34807</link>
      <description>basically, yes. You need separate SOA zone files for your different domains. so add them to named.conf, then add the files to /var/named. You can simply copy db.domain1 to db.domain2 and 3, but delete all the other host records that you don't need and change the origin. You should just need the @ record in the new files. Point this @ record to the same IP's. &lt;BR /&gt;Then test with nslookup, host.domain1, host.domain2 and host.domain3 will all point to the same IP.</description>
      <pubDate>Thu, 08 Nov 2001 18:47:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dns-config/m-p/2604019#M34807</guid>
      <dc:creator>Kevin Wright</dc:creator>
      <dc:date>2001-11-08T18:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: DNS config</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dns-config/m-p/2604020#M34808</link>
      <description>Ok I'll give that a try.  I will post the status here after I try it out.&lt;BR /&gt;&lt;BR /&gt;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.</description>
      <pubDate>Thu, 08 Nov 2001 20:23:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dns-config/m-p/2604020#M34808</guid>
      <dc:creator>Fred Martin_1</dc:creator>
      <dc:date>2001-11-08T20:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: DNS config</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dns-config/m-p/2604021#M34809</link>
      <description>Bind 4.9.7 is pretty secure, just ancient. I suggest you compile 8.2.3 (at least), but you need the full ansi C compiler to do this.</description>
      <pubDate>Thu, 08 Nov 2001 21:59:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dns-config/m-p/2604021#M34809</guid>
      <dc:creator>Kevin Wright</dc:creator>
      <dc:date>2001-11-08T21:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: DNS config</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dns-config/m-p/2604022#M34810</link>
      <description>Well all seems to be going pretty well.  I did not need three zone files though - I have one zone file:&lt;BR /&gt;&lt;BR /&gt;db.domain1&lt;BR /&gt;&lt;BR /&gt;And, in the named.boot file these three lines:&lt;BR /&gt;&lt;BR /&gt;primary domain1.com db.domain1&lt;BR /&gt;primary domain2.com db.domain1&lt;BR /&gt;primary domain3.com db.domain1&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Thanks for your assistance Kevin and those above, well done.</description>
      <pubDate>Thu, 08 Nov 2001 22:32:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dns-config/m-p/2604022#M34810</guid>
      <dc:creator>Fred Martin_1</dc:creator>
      <dc:date>2001-11-08T22:32:18Z</dc:date>
    </item>
  </channel>
</rss>

