Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have install Redhat 9 's linux mail server(sendmail). It could send and receive mail from localhost.localdomain. But it can't recongnize it's own domain name (hitech.com).
I have set the domain name in /etc/resolv.conf like this
domain hitech.com
The host name is "machine1". When I ping "machine1.hitech.com" it did reply. But when I send mail to "root@hitech.com" it just won't able to deliver. It only work if I send mail to "root". What am I missing?
Yes, you have to edit your named.conf file and add the zones needed: Domain, localhost, loop and reverse. Lets assume a single box.
Let's say your domain is domain.com and your address is 1.2.3.4
Ex.
zone "domain.com" {
file "domain.com.dns";
type master;
notify no;
};
zone "3.2.1.IN-ADDR.ARPA" {
type master;
file "domain.rev";
notify no;
};
Then, you have to add your domain files in the /var/named directory.
$TTL 3D
domain.com. IN SOA ns.domain.com. root.domain.com. (
2003082601 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; default_ttl
)
;name servers
domain.com. IN NS ns.domain.com.
;Mail exchange
domain.com. IN MX 5 ns.domain.com.
localhost IN A 127.0.0.1
ns.domain.com. IN A 1.2.3.4
domain.com. IN A 200.12.228.11
;Aliases
www IN CNAME ns.domain.com.
Then, your reverse file
@ IN SOA domain.com. root.domain.com. (
2003082601 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; default_ttl
)
@ IN NS ns.domain.com.
@ IN NS ns.isp.com.
4 IN PTR ns.domain.com.
If you want to know whether ur dns config fine or not, simply type in the prompt (your linux box):
nslookup (hit enter)
server 1.2.3.4 ( your dns server's IP) (hit enter)
linuxquestions.org (hit enter)
if you got answer like this :
server :your dns server name
address : your dns server ip
#nslookup
> server 1.2.3.4 (my ip)
Default server: 1.2.3.4
Address: 1.2.3.4#53
> linuxquestions.org
;; connection timed out; no servers could be reached
I wonder my domain name is valid or not, it's naming convention is like this <myname>.connect.to,
is that just involve the two files <mydomain name>.dns and <mydomain name>.rev in /var/named will be fine ?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.