Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can only access domain using dsn ip

Status
Not open for further replies.

optimised

Technical User
Jun 21, 2001
96
US
Hi,
I can only get to my domain by using the ip address of my dns server in the address bar on browser.
These are my config files - running rh 7.1 bind9.1

// named.conf - configuration for bind
options {
directory "/var/named/";
};
key rndc_key {
algorithm hmac-md5;
secret "WpmzrVa55MEzL10swxsBVg==";
};

controls {inet 172.25.47.98 port 953 allow {localhost;} keys {rndc_key;};
};
zone "." {
type hint;
file "named.ca";
};
zone "0.0.127.in-addr.arpa" {
type master;
file "0.0.127.in-addr.arpa.zone";
};
zone "localhost" {
type master;
file "localhost.zone";
};
zone " {
type master;
file "};

// localhost.zone
$TTL 86400
@ IN SOA @ root.localhost (
1 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttl
)

@ IN NS localhost.
@ IN A 127.0.0.1

// $TTL 86400
@ IN SOA @ root.localhost (
3 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttl
)
@ IN NS ns1.mydomain.com
@ IN NS ns2.mydomain.com
@ IN MX 20 myhostman.com

//httpd vhost section
NameVirtualHost 172.25.47.98
<VirtualHost 172.25.47.98>
Servername DocumentRoot /home/domain/www
</VirtualHost>

thks
 
Hi,
I am only able to access my server (web site) by using my ip in the address bar in browser which will open the apache test page. It seems that my server is not recognised any other way then my ip address. I am sure named is running. I can ping and ftp to this ip but not able to ping hostname. I can't figure out what's missing. These are some of my config files. Thanks

## httpd.conf -
#
ServerType StandAlone
ServerRoot /etc/httpd/
ServerName ns1.mydomain.com
ServerAdmin me@home.com
Listen *:80
Port 80

# Documents
DocumentRoot /var/UserDir public_html
IndexOptions FancyIndexing

# Who runs the server?
User apache
Group apache

AccessFileName .htaccess
UseCanonicalName on
TypesConfig /etc/mime.types
DefaultType &quot;text/plain&quot;

# Defaults for virtual hosts
ServerSignature on
# Logs
ErrorLog /var/log/httpd/error_log
LogLevel warn
HostNameLookups Off

Alias /icons/ &quot;/var/ScriptAlias /cgi-bin/ &quot;/var/#
ScriptAlias /cgi-bin/ &quot;/var/# FancyIndexing: whether you want fancy directory
# indexing or standard
IndexOptions FancyIndexing

# Allow access to local system documentation
# from localhost
<Location /doc>
order deny,allow
deny from all
allow from localhost
Options Indexes FollowSymLinks
</Location>

# Virtual hosts
# Virtual host Default Virtual Host
<VirtualHost _default_:*>
ServerName _default_
DirectoryIndex index.php index.html index.htm
ServerSignature email
LogLevel warn
HostNameLookups off
</VirtualHost>

# Virtual host NameVirtualHost *
<VirtualHost *>
DocumentRoot /home/mydomain/www/
ServerName ServerAlias mydomain.com
ServerSignature email
</VirtualHost>

# Directories...
<Directory &quot;/&quot;>
Options FollowSymLinks
AllowOverride None
</Directory>

<Directory &quot;/var/ Options Indexes Includes FollowSymLinks
AllowOverride None
Allow from from all
Order Deny,Allow
</Directory>


//Host file
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
172.25.47.98 ns1.myhostman.com myhostman
172.25.47.98 myhostman.com mysite


//mydomain zone file
$TTL 86400
@ IN SOA ns1.myhostman.com. hostmaster.myhostman.com. (
20010814; Serial
12H ; Refresh
1H ; Retry
2W ; Expire
1D ) ; Minimum
IN NS ns1.myhostman.com.
IN NS ns2.myhostman.com.
www IN A 205.162.9.218
ftp IN A 205.162.9.218
www IN A 205.162.9.219
mail IN A 205.162.9.219
IN MX 5 mail.myhostman.com.

//resolve.conf
search mydomain.com
nameserver ip one of isp nameserver
nameserver ip two of isp nameserver
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top