Koozali.org: home of the SME Server

DNS configuration

gmr2000

DNS configuration
« on: August 25, 2004, 11:14:35 AM »
I am using SME 6.0.1 and configure to use the  ISP dns.
When I am trying to connect to the server using the name such as mail.mydomain.com or ftp.mydomain.com, the server resolve the external IP not the local one.
Is there any way to force it to resolve the local name?

mbachmann

DNS configuration
« Reply #1 on: August 25, 2004, 12:01:45 PM »
Server manager, Hostname and adresses, enter mydomain.com with Location local and IP if needed.

gmr2000

DNS configuration
« Reply #2 on: August 25, 2004, 12:24:50 PM »
All of them are already their.
And I fond something strange, when I tried to dig mail.mydomian.com @127.0.0.1 the server replay with the right IP, but when I tried to dig mail.mydomain.com @10.10.10.1 which is the internal IP the server it is does not reply the any IP.

mbachmann

DNS configuration
« Reply #3 on: August 25, 2004, 12:46:07 PM »
I meant Visibility local, Location: self with correct values.

Try dig at command prompt to check out what the server sees, e.g.

Code: [Select]
dig mydomain.local.org

gmr2000

DNS configuration
« Reply #4 on: August 25, 2004, 12:59:25 PM »
all the hosts entry have Visibility :local, Location: self.

result of runing dig mydomain.local.org

Code: [Select]
; <<>> DiG 9.2.1 <<>> mydomain.local.org
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 22909
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;mydomain.local.org.            IN      A

;; Query time: 1 msec
;; SERVER: 10.10.10.1#53(10.10.10.1)
;; WHEN: Wed Aug 25 13:56:05 2004
;; MSG SIZE  rcvd: 36

mbachmann

DNS configuration
« Reply #5 on: August 25, 2004, 01:27:51 PM »
Allright, your local webserver, www.mydomain.local.org should have visibility local, location local, local ip: 10.10.10.01.

Create a second hostname (add hostname) with the ISP registered values, like mydomain.com

Your server is using the ISPs DNS to resolve adresses but does not know his local adress.

There is a DNS tutorial amidst this thread, please read carefully: http://forums.contribs.org/index.php?topic=22204.0

I am not a DNS expert, most things i have to lookup myself.

gmr2000

DNS configuration
« Reply #6 on: August 25, 2004, 01:37:25 PM »
Thanks a lot for you help.

I will go through the tutorial, just to add one point I don’t have any register name. since I am using it only for internal users, I just pick up the mydomain.com and it’s not mydomain.local.org.