SlackwareThis Forum is for the discussion of Slackware Linux.
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.
First: when i type dnsdomainname i get "dnsdomainname: Unknown server error" or "dnsdomainname: Unknown host" when i change the search line in /etc/resolv.conf.
Anyone any ideas?
Second: I don't know what i did, but up until now when i did ls -a i got the hidden files (in alphabetical order) first, then the normal ones. Now i get something like this:
aaa
.aaa
bbb
ccc
.ddd
ddd
First: when i type dnsdomainname i get "dnsdomainname: Unknown server error" or "dnsdomainname: Unknown host" when i change the search line in /etc/resolv.conf.
Anyone any ideas?
What does your /etc/resolv.conf show? Generally the search line would be for the local domain. You can search other domains/servers but be aware that the network can/will be busy thus a slow response for the search. Do a 'man resolv.conf' to get the information.
search no
nameserver 194.149.0.157
nameserver 194.149.0.156
EDIT: Well, tho i don't really get the picture about this, since I'm not the member of any .no domain, skogen is just my hostname, i tried changing it to something that actually exists: ath.cx (which i use for my dyndns settings) and not it works correctly.
search no
nameserver 194.149.0.157
nameserver 194.149.0.156
EDIT: Well, tho i don't really get the picture about this, since I'm not the member of any .no domain, skogen is just my hostname, i tried changing it to something that actually exists: ath.cx (which i use for my dyndns settings) and not it works correctly.
Hi,
You really need to 'man resolv.conf'. From the man (1) resolv.conf;
Code:
search Search list for host-name lookup. The search list is normally
determined from the local domain name; by default, it contains
only the local domain name. This may be changed by listing the
desired domain search path following the search keyword with
spaces or tabs separating the names. Most resolver queries will
be attempted using each component of the search path in turn
until a match is found. Note that this process may be slow and
will generate a lot of network traffic if the servers for the
listed domains are not local, and that queries will time out if
no server is available for one of the domains.
The search list is currently limited to six domains with a total
of 256 characters.
You are telling the resolver to search domain 'no'.
Yes I do understand that. Question is, why would I want to (need to) search any domains? (apart from the reason that otherwise dnsdomainname reports errors)
I only need the nameservers, for hostname lookup.
The slackbook entry on /etc/resolv.conf cleared up a bit on the file usage, yet i still don't know why it's important.
Yes I do understand that. Question is, why would I want to (need to) search any domains? (apart from the reason that otherwise dnsdomainname reports errors)
I only need the nameservers, for hostname lookup.
The slackbook entry on /etc/resolv.conf cleared up a bit on the file usage, yet i still don't know why it's important.
Hi,
The importance is that this allows you to choose a domain to look for DNS and speed up the search. If you read the 'man' page, you will see that if no domain is given then the resolver will look at the local machine.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.