LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-04-2007, 07:21 AM   #1
pdw_hu
Member
 
Registered: Nov 2005
Location: Budapest, Hungary
Distribution: Slackware, Gentoo
Posts: 346

Rep: Reputation: Disabled
dnsdomainname and ls question


Hi!

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?

/etc/hosts:
127.0.0.1 localhost
192.168.0.140 skogen.no skogen

/etc/host.conf
order hosts,bind
multi o

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

Anyone any idea on what can toggle this?

Thanks!
 
Old 01-04-2007, 07:30 AM   #2
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,923
Blog Entries: 44

Rep: Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158
Quote:
Originally Posted by pdw_hu
Hi!

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?

/etc/hosts:
127.0.0.1 localhost
192.168.0.140 skogen.no skogen

/etc/host.conf
order hosts,bind
multi o

Thanks!
Hi,

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.

Last edited by onebuck; 01-04-2007 at 07:32 AM.
 
Old 01-04-2007, 02:22 PM   #3
pdw_hu
Member
 
Registered: Nov 2005
Location: Budapest, Hungary
Distribution: Slackware, Gentoo
Posts: 346

Original Poster
Rep: Reputation: Disabled
/etc/resolv.conf

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.

Last edited by pdw_hu; 01-04-2007 at 02:26 PM.
 
Old 01-04-2007, 10:21 PM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,923
Blog Entries: 44

Rep: Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158
Quote:
Originally Posted by pdw_hu
/etc/resolv.conf

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'.

Last edited by onebuck; 01-04-2007 at 10:23 PM.
 
Old 01-05-2007, 06:26 AM   #5
pdw_hu
Member
 
Registered: Nov 2005
Location: Budapest, Hungary
Distribution: Slackware, Gentoo
Posts: 346

Original Poster
Rep: Reputation: Disabled
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.
 
Old 01-05-2007, 07:28 AM   #6
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,923
Blog Entries: 44

Rep: Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158
Quote:
Originally Posted by pdw_hu
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.

READ THE 'MAN'!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
/etc/hosts, hostname, and dnsdomainname questions rdmenotte Linux - Software 9 03-28-2015 04:27 AM
Changing hostname, dnsdomainname, and domainname permanently. xemous Linux - Networking 6 12-16-2009 01:21 PM
dnsdomainname: Unknown host Baldur Linux - Newbie 3 05-23-2006 04:05 PM
Question, Apples Contribution to Open Source + MacOs file structure question Higgy3k Other *NIX 5 07-25-2005 04:23 AM
Not your regular GRUB question - just a short question for a fried MBR!! ziphem Linux - General 3 01-31-2005 01:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration