|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now! |
|
#1
|
|||
|
|||
|
Hi all. Hope you can help me, a newbie, with setting up my first webserver. Pacbell refuses to reply to my emails, so I'm turning to you guys for help. I'm not sure if I'm allowed to give out my info like this, but I wanted to be specific about my questions and need specific answers as well. Below is the one and only email I received from pacbell admin:
----------------------------------------------------------------------- Dear hostmaster, The PBI assigned IP block has been delegated to your DNS server for the reverse in-addr lookups. This is an RFC 2317 "style" delegation of an IP block < Class C. The in-addr zone has been delegated to: phatgears.com 66.126.193.128/29 prim. = server1.phatgears.com = 66.126.193.131 sec. = server2.phatgears.com = 66.126.193.135 You will need to run the following reverse in-addr zone: 128.193.126.66.in-addr.arpa Please add NS records for ns1.pbi.net and ns2.pbi.net, and allow zone transfers to these nameservers. Please see that attached DNS F.A.Q. for more information. If you are unwilling or unable to handle this delegation, please email dns-admin@pbi.net and it will be replaced with generic entries. Any future changes to these reverse entries are subject to the standard fees associated with custom DNS entries as stated in your contract. Pacific Bell Internet Services' Policy requires that ns1.pbi.net and ns2.pbi.net perform secondary DNS resolution for reverse lookups for all delegated zones. Please allow zone transfers to occur to ns1.pbi.net (206.13.28.11) and ns2.pbi.net (206.13.29.11) for the in-addr zones. Thanks, DNS Administrator Pacific/Southwestern Bell Internet Services --------------------------------------------------------------------- let me first tell you guys that I have a redhat 9 server running BIND 9.2.1, and Apache 2.0.40. This server handles ip's 66.126.193.131=server1.phatgears.com and 66.126.193.135=server2.phatgears.com. Here come the questions (forgive me if I sound like an idiot): 1) Should the interNIC record have server1&2.phatgears.com as the nameservers OR ns1&2.pbi.net? 2) I don't understand why admin delegated the in-addr zone 66.126.193.128 instead of 66.126.193. 3) The email above instructs me to run a reverse-in-addr zone -128.193.126.66.in-addr.arpa. I figure this file should have records something like "1.128.193.126.66.in-addr.arpa. IN PTR www.phatgears.com", but my usable ip's 66.126.193.131 thru 135. I can't even form a question on this issue. help? 4) Zone transfer issue: I'm not sure if I should be running a primary server or secondary(slave) server. I tried to do allow-transfer to ns1&ns2.pbi.net, but I'm not sure if I'm doing it right. 5) How should my resolve.conf file look like? as of now pacbell nameservers are present in the file. should it include my domain name as well? ---------------------------------------------------------------------- okay, I think the answers to these questions will hopefully lead me in the right direction. I have read a lot of help sites, and read through DNS and BIND books, but can't figure out why my server isn't working. Plz email me at hotdrew24@hotmail.com if you need to see my /named files to further assist me. I appreciate you reading through this long agonizing post, and thank you so much for your input. sincerely, Andy |
|
#2
|
||||
|
||||
|
This is what your configuration needs to look like. If you really need an explanation on how 66.126.193.128/29 means you get IP's 128 through 135, ask and I'll tell you in the next post.
In BIND's named.conf you'd have the following zone statement: [server1.phatgears.com "named.conf"] zone "128.193.126.66.in-addr.arpa" IN { type master; # PBI IP's required by PBI delegation terms allow-transfer { 206.13.28.11; 206.13.29.11; 66.126.193.135; }; file "66.126.193.128.rev"; }; [server2.phatgears.com "named.conf"] zone "128.193.126.66.in-addr.arpa" IN { type slave; masters { 66.126.193.131; }; # PBI IP's required by PBI delegation terms allow-transfer { 206.13.28.11; 206.13.29.11; }; file "66.126.193.128.rev"; }; And your master zone file will look something like this: [server1.phatgears.com "66.126.193.128.rev"] Code:
$ORIGIN 128.193.126.66.in-addr.arpa. $TTL 15m @ SOA server1.phatgears.com. myemail.address.com. 2003122000 1h 30m 1w 15m NS server1.phatgears.com. NS server2.phatgears.com. NS ns1.pbi.net. NS ns2.pbi.net. 128 PTR extra1.phatgears.com. 129 PTR extra2.phatgears.com. 130 PTR extra3.phatgears.com. 131 PTR server1.phatgears.com. 132 PTR host1.phatgears.com. 133 PTR host2.phatgears.com. 134 PTR host3.phatgears.com. 135 PTR server2.phatgears.com. I have tested this, and it works very well on BIND 9.2.2. P.S. WARNING!!! "Any future changes to these reverse entries are subject to the standard fees associated with custom DNS entries as stated in your contract." If I interpret that correctly, that means PBI will charge you if you change the PTR domain pointers after you initially set them. P.S.S. TIP Removing the "128." from the zone declarations and ORIGIN may have things work even better (cause then CNAME'ing wouldn't occur). However, I followed PBI's cryptic instructions in case it may be against their terms.
__________________
Send me a private message if you would like me to setup your DNS for you for a price of your choosing. This is the preferred method if your DNS needs to be fixed/setup fast and you don't have the time to bounce messages back and forth on a forum. Also, check out these links: Whois Direct | DNS Crawler | NS Trace | Compare Free DNS Hosts Last edited by SilentRage : December 20th, 2003 at 02:43 PM. |
|
#3
|
|||
|
|||
|
First of all, thank you for your response. Yes, I would like to know how 66.126.193.128/29 = I get ip's 128-135.
Next thing is to ask what I should do if I only have one server, which is the 66.126.193.131. How can I handle server2.phatgears.com - 66.126.193.135 w/out having a second server, or is that even possible? Next, here's what my named.conf looks like as of now: [server1.phatgears.com 66.126.193.131] ------------------------------------------- options { directory "/var/named"; }; zone "0.0.127.in-addr.arpa" { type master; file "db.127.0.0"; }; zone "128.193.126.66.in-addr.arpa" IN { type master; allow-transfer { 206.13.28.11; 206.13.29.11; 66.126.193.135; }; file "66.126.193.128.rev"; }; zone "phatgears.com" { type master; allow-transfer { 206.13.28.11; 206.13.29.11; }; file "phatgears.com"; }; zone "." in { type hint; file "db.cache"; }; ----------------------------------------- And here's what my "66.126.193.128.rev" file looks like: ------------ $ORIGIN 128.193.126.66.in-addr.arpa. $TTL 15m @ SOA server1.phatgears.com. hotdrew24.hotmail.com. ( 2003122101 ; Serial 1h ; Refresh after 3 hours 30m ; Retry after 1 hour 1w ; Expire after 1 week 15m ) ; Negative caching TTL of 1 hour NS server1.phatgears.com. NS server2.phatgears.com. NS ns1.pbi.net. NS ns2.pbi.net. 131cd .. PTR www.phatgears.com. 131 PTR server1.phatgears.com. 131 PTR phatgears.com. 135 PTR server2.phatgears.com. -------------------------------------------------- I tried to make it look like your example as much as possible. phatgears.com or www.phatgears.com is still not working. Am I doing what you told me to do, or am I still lost? here's part of my message log: -------------------------------------------------- Dec 21 23:13:26 phatgears named[2228]: starting BIND 9.2.1 -u named Dec 21 23:13:26 phatgears named[2228]: using 1 CPU Dec 21 23:13:26 phatgears named: named startup succeeded Dec 21 23:13:26 phatgears named[2228]: loading configuration from '/etc/named.conf' Dec 21 23:13:26 phatgears named[2228]: no IPv6 interfaces found Dec 21 23:13:26 phatgears named[2228]: listening on IPv4 interface lo, 127.0.0.1#53 Dec 21 23:13:26 phatgears named[2228]: listening on IPv4 interface eth0, 66.126.193.131#53 Dec 21 23:13:26 phatgears named[2228]: listening on IPv4 interface eth0:1, 66.126.193.135#53 Dec 21 23:13:26 phatgears named[2228]: command channel listening on 127.0.0.1#953 Dec 21 23:13:26 phatgears named[2228]: zone 0.0.127.in-addr.arpa/IN: loaded serial 2003122100 Dec 21 23:13:26 phatgears named[2228]: zone 128.193.126.66.in-addr.arpa/IN: loaded serial 2003122102 Dec 21 23:13:26 phatgears named[2228]: dns_master_load: phatgears.com:14: unknown RR type 'localhost' Dec 21 23:13:26 phatgears named[2228]: zone phatgears.com/IN: loading master file phatgears.com: unknown class/type Dec 21 23:13:26 phatgears named[2228]: running Dec 21 23:13:26 phatgears named[2228]: zone 0.0.127.in-addr.arpa/IN: sending notifies (serial 2003122100) Dec 21 23:13:26 phatgears named[2228]: zone 128.193.126.66.in-addr.arpa/IN: sending notifies (serial 2003122102) --------------------------------------- I would really appreciate further feedback, and thank you again for your help. Sincerely, Andy |
|
#4
|
|||
|
|||
|
sorry my 66.126.193.128.rev file didn't paste over correctly.
|
|
#5
|
||||
|
||||
|
Quote:
Quote:
|
|
#6
|
||||
|
||||
|
Quote:
Quoted from PBI's email to him: "Pacific Bell Internet Services' Policy requires that ns1.pbi.net and ns2.pbi.net perform secondary DNS resolution for reverse lookups for all delegated zones. Please allow zone transfers to occur to ns1.pbi.net (206.13.28.11) and ns2.pbi.net (206.13.29.11) for the in-addr zones." I'm guessing they require this so that they can monitor changes to PTR records easier and therefor charge for each change. |
|
#7
|
|||
|
|||
|
Read what I quoted, I was merely referring to the phatgears.com zone.
|
|
#8
|
||||
|
||||
|
oooh yeah. heh. he needs to take that out.
|
|
#9
|
|||
|
|||
|
Once again, thank you for your inputs, SilentRage and freebsd. I have made corrections as freebsd pointed out. however, there's still no response from phatgears.com or www.phatgears.com.
it's odd to me that only server1.phatgears.com responds. I know my queries have been long and dry, but could you guys re-check some of my questions and entries, and let me know if you guys find more "wrongful doings"? Thank you. sincerely, Andy |
|
#10
|
|||
|
|||
|
You need to create a zone record for phatgears.com. The reverse is a different record and different file. Go google for samples first. Also go http://www.dnsreport.com/ and check for problems yourself.
|
|
#11
|
|||
|
|||
|
thanks for your reply. Here is a copy of my phatgears.com.zone file in /named:
$ORIGIN phatgears.com. $TTL 15m @ IN SOA server1.phatgears.com. hotdrew24.hotmail.com. ( 2003122400 ; Serial 1h ; Refresh after 1 hour 30m ; Retry after 30 mins 1w ; Expire after 1 week 15m ) ; Negative caching TTL of 15 min IN NS server1.phatgears.com. IN NS ns1.pbi.net. IN NS ns2.pbi.net. localhost IN A 127.0.0.1 server1 IN A 66.126.193.131 www IN A 66.126.193.131 IN A 66.126.193.131 ------------------------ does this look okay to you guys? is it okay to have www.phatgears.com, server1.phatgears.com, and phatgears.com all pointing to a single ip, or should I have CNAMES instead? another thing I was wondering is if it is okay to leave out the "IN" statement. I was reading through some examples via google search, and now I'm questioning if my resolve.conf file is correct: [resolve.conf] search dsl.sndg02.pacbell.net nameserver 206.13.30.12 nameserver 206.13.29.12 I read somewhere that I should have something like: search subdomain.phatgears.com nameserver server1.phatgears.com nameserver server2.phatgears.com As of now, testing phatgears.com at the referred website gives me all kinds of "FAILS". Nothing seems to be responding to phatgears.com by the looks of it. Help again? Thank you so much guru's. Sincerely, Andy |
|
#12
|
||||
|
||||
|
Quote:
You entered server2.phatgears.com when registering your domain so why didn't you specify an NS to server2.phatgears.com? You also need an A recrod for server2.phatgears.com. Quote:
In your resolv.conf remove the search line and use your pbi ones until yours is fully working. Anyway, your zone record has shortcut all over. Note, shortcuts is for people who know what they are doing, you are not, so don't use it. Start here and read the mezzweb.com.now sample that I posted. There are a dozen hundred more examples, you just have to search harder. |
|
#13
|
|||
|
|||
|
Thank you for the correction. I made the changes to phatgears.com file and I attached it here. please look over my files, and see what other changes should be made. I apologize for asking for so much, but I have checked and re-checked the files and still can't understand how server1.phatgears.com works and not phatgears.com and www.phatgears.com. Thank you freebsd and any others that might be of any help.
sincerely, andy |
|
#14
|
|||
|
|||
|
Quote:
Anyhow, your BIND is either not up and running or there's a firewall in between blocking DNS queries. |
|
#15
|
||
|