Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/etc/host.conf: line 24: bad command 'mdns off'
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
microtechno
Apprentice
Apprentice


Joined: 17 Apr 2006
Posts: 224
Location: Adelaide, Australia

PostPosted: Sun Jul 30, 2006 9:44 am    Post subject: /etc/host.conf: line 24: bad command 'mdns off' Reply with quote

Here is a little histroy about my problems. So that It can all be worked out.
Sorry if it doesnt mean anything.
After running
Code:
emerge --rsync
It said that i needed to update portage so I did.
Code:
emerge -world
But like in the following post i got a Block https://forums.gentoo.org/viewtopic-p-3178419.html#3178419 So I used what the post said
Code:
emerge --buildpkgonly --nodeps shadow && emerge -C pam-login && emerge --usepkgonly shadow

This worked, so then I used a Deep world
Code:
emerge --deep world
or something like that.
I then ran the
Code:
emerge --rsync
again. Because i thought that I had to.
Since i was trying to run php on my server I noticed that it wasnt there. So I looked for the Code and followed.
http://www.gentoo.org/proj/en/php/php-upgrading.xml
The code that I used is.
Code:
USE="cli apache2" emerge '=dev-lang/php-4*' '=dev-lang/php-5*'

Code:
emerge '=dev-lang/php-4*'

Code:
emerge '=dev-lang/php-5*'

Code:
(settings for PHP4)
APACHE2_OPTS="-D PHP4"

(or settings for PHP5)
APACHE2_OPTS="-D PHP5"


Since Php wasnt working I restarted my 'server'
Then i was greeted with the following as gentoo started then as I loged in.

Code:

*    Dhcp
*         Runnning Dhcp
/etc/host.conf: line 24: bad command 'mdns off'
*       eth0 recived address 192.168.0.1
*Mounting network filesystems ...
*starting sshd
*Starting apache2 on Server ...
/etc/host.conf: line 24: bad command 'mdns off'
*Starting vixie-cron ...
*Starting local ...


/etc/host.conf: line 24: bad command 'mdns off'
This is server.localdomain (Linux i686 2.6.15.3) 19:46:33

server login: root
configuration error - unknown item 'FAILLOG_ENAB' (notify administrator)
configuration error - unknown item 'LASTLOG_ENAB' (notify administrator)
configuration error - unknown item 'MOTD_FILE' (notify administrator)
configuration error - unknown item 'FTMP_FILE' (notify administrator)
configuration error - unknown item 'ENV_ROOTPATH' (notify administrator)
configuration error - unknown item 'PASS_MIN_LEN' (notify administrator)
configuration error - unknown item 'CHRN_AUTH' (notify administrator)
Password:
server ~ #


So i dont know what to do.
When the 'world' had finished there were some Config Files in /etc that it didnt do anything to. But i have no idea what to do with them so I left it. That could be the problem. I am a nubie to Gentoo and linux.
any help would be appreciated.
Back to top
View user's profile Send private message
Philantrop
Retired Dev
Retired Dev


Joined: 21 Dec 2004
Posts: 1130
Location: Germany

PostPosted: Sun Jul 30, 2006 9:51 am    Post subject: Reply with quote

Run etc-update or dispatch-conf (just use the one you're used to) to update your configuration files.
_________________
If you feel the issues discussed in this thread have been resolved, please add a "[Solved]" to the subject of your original posting.
Back to top
View user's profile Send private message
microtechno
Apprentice
Apprentice


Joined: 17 Apr 2006
Posts: 224
Location: Adelaide, Australia

PostPosted: Mon Jul 31, 2006 5:36 am    Post subject: Reply with quote

Is this the output that it should have.
Code:
#etc-update
scanning configuration files
Exiting: Nothing left to do...


Also it hasnt fixed the "mdns off" when the server started.

Is there any information that someone knows about fixinf config files? because i have no idea how to fix them.

As I was
Code:
emerge proftpd

The code that comes up when I log in also came up. I am the admin but i dont know what it means. Any admins that do?
Code:
configuration error - unknown item 'FAILLOG_ENAB' (notify administrator)
configuration error - unknown item 'LASTLOG_ENAB' (notify administrator)
configuration error - unknown item 'MOTD_FILE' (notify administrator)
configuration error - unknown item 'FTMP_FILE' (notify administrator)
configuration error - unknown item 'ENV_ROOTPATH' (notify administrator)
configuration error - unknown item 'PASS_MIN_LEN' (notify administrator)
configuration error - unknown item 'CHRN_AUTH' (notify administrator)
Back to top
View user's profile Send private message
microtechno
Apprentice
Apprentice


Joined: 17 Apr 2006
Posts: 224
Location: Adelaide, Australia

PostPosted: Wed Aug 02, 2006 12:15 pm    Post subject: Reply with quote

I taged out the mdns so that it looks like
Code:
#mdns off

But that only fixed the
Code:
/etc/host.conf: line 24: bad command 'mdns off'

the other config errors still are there when i log in.
does anybody know what is wrong?
Do i need to submit a bug report of something?
I am very new to gentoo/linux?
Back to top
View user's profile Send private message
Philantrop
Retired Dev
Retired Dev


Joined: 21 Dec 2004
Posts: 1130
Location: Germany

PostPosted: Wed Aug 02, 2006 1:33 pm    Post subject: Reply with quote

You should find the other options in /etc/login.defs.
_________________
If you feel the issues discussed in this thread have been resolved, please add a "[Solved]" to the subject of your original posting.
Back to top
View user's profile Send private message
microtechno
Apprentice
Apprentice


Joined: 17 Apr 2006
Posts: 224
Location: Adelaide, Australia

PostPosted: Sat Aug 05, 2006 6:05 am    Post subject: Reply with quote

Thanks
I commented out the problematic commands and the errors have stoped.
Are these commands needed though?
It wont reak any havoc on my box?
thanks. I belive that this topic is almost solved.
Back to top
View user's profile Send private message
Jambonant
Apprentice
Apprentice


Joined: 18 Mar 2006
Posts: 181
Location: Montreal, Canada

PostPosted: Thu Aug 10, 2006 5:18 am    Post subject: Reply with quote

microtechno wrote:
Thanks
I commented out the problematic commands and the errors have stoped.
Are these commands needed though?
It wont reak any havoc on my box?
thanks. I belive that this topic is almost solved.


Hey I have the exact same problem, and wanted to know what did you actualy commented out (in /etc/login.defs) in order to make it all work fine, and did you had any problem afterward ?
_________________
Francois Castonguay,
Registered Linux User #412639
4 AMD Phenom 9550 Quand-Core, 4G ram
Back to top
View user's profile Send private message
Philantrop
Retired Dev
Retired Dev


Joined: 21 Dec 2004
Posts: 1130
Location: Germany

PostPosted: Thu Aug 10, 2006 6:29 am    Post subject: Reply with quote

Sorry, I thought I had answered the original question already: You can comment out the options mentioned above without any risk.

I'm currently in a hurry but I'll explain the options' meanings later today (I hope).
_________________
If you feel the issues discussed in this thread have been resolved, please add a "[Solved]" to the subject of your original posting.
Back to top
View user's profile Send private message
/albert
n00b
n00b


Joined: 17 Jan 2005
Posts: 58

PostPosted: Thu Aug 10, 2006 9:11 am    Post subject: Reply with quote

I think this is not the right behavior of etc-update. Or did you update it before it was said here?

For a while, I had similar problems with etc-update. It did not found all my configuration-files. I think, it was resulted by changed configuration of etc-update itself.
You can fix it by running:
Code:

CONFIG_PROTECT=/etc etc-update


All the errors you presented are there because of bad configuration files of differentsystem services like PAM, your login and so on. It is really important that you update your configuration files after every system-update you do.

If the above trick with etc-update does not work (if it sais 'Nothing left to do' but there is a lot left to do, it does not work), try out a different tool for it like dispatch-conf as was said here (I never tried it, but it should do the same).

You can check it by hand, if there are new configuration files waiting to be updated:
Code:

find /etc | grep ._cfg

This works because Portage names new configuration files, which are already there (because it doesn't overwrite it), like ._cfgNUMBER_OLDNAME.
Back to top
View user's profile Send private message
microtechno
Apprentice
Apprentice


Joined: 17 Apr 2006
Posts: 224
Location: Adelaide, Australia

PostPosted: Fri Aug 11, 2006 2:35 am    Post subject: Reply with quote

Quote:
Hey I have the exact same problem, and wanted to know what did you actualy commented out (in /etc/login.defs) in order to make it all work fine, and did you had any problem afterward ?

Where the errors said
Code:
configuration error - unknown item 'MOTD_FILE' (notify administrator)

I just went to the file that Philantrop
Code:
/etc/login.defs
said.
Then commented out the code that was causing the error.
I dont know if this has fixed it or hidden the problem
Becuase when i updated the system i didnt know about the config files.
Back to top
View user's profile Send private message
Jambonant
Apprentice
Apprentice


Joined: 18 Mar 2006
Posts: 181
Location: Montreal, Canada

PostPosted: Fri Aug 11, 2006 5:55 am    Post subject: Reply with quote

/albert wrote:
I think this is not the right behavior of etc-update. Or did you update it before it was said here?

For a while, I had similar problems with etc-update. It did not found all my configuration-files. I think, it was resulted by changed configuration of etc-update itself.
You can fix it by running:
Code:

CONFIG_PROTECT=/etc etc-update


All the errors you presented are there because of bad configuration files of differentsystem services like PAM, your login and so on. It is really important that you update your configuration files after every system-update you do.

If the above trick with etc-update does not work (if it sais 'Nothing left to do' but there is a lot left to do, it does not work), try out a different tool for it like dispatch-conf as was said here (I never tried it, but it should do the same).


I'm a little confused when I do the command requested CONFIG_PROTECT=/etc etc-update, I'm then promted with some choices, what do I have to do?

Code:

Frank ~ # CONFIG_PROTECT=/etc etc-update
Scanning Configuration files...
The following is the list of files which need updating, each
configuration file is followed by a list of possible replacement files.
 1) /etc/skel/.bashrc (1)
 2) /etc/udev/rules.d/50-udev.rules (1)
 3) /etc/ssl/misc/CA.pl (1)
 4) /etc/ssl/misc/CA.sh (1)
 5) /etc/DIR_COLORS (1)
 6) /etc/init.d/apache2 (1)
 7) /etc/bash/bashrc (1)
 8) /etc/init.d/bootmisc (1)
 9) /etc/init.d/checkfs (1)
10) /etc/init.d/checkroot (1)
11) /etc/X11/xdm/chooser (1)
12) /etc/conf.d/clock (1)
13) /etc/init.d/clock (1)
14) /etc/init.d/consolefont (1)
15) /etc/conf.d/domainname (1)
16) /etc/conf.d/gpm (1)
17) /etc/init.d/halt.sh (1)
18) /etc/conf.d/hdparm (1)
19) /etc/init.d/hdparm (1)
20) /etc/host.conf (1)
21) /etc/conf.d/hostname (1)
22) /etc/apache2/httpd.conf (1)
23) /etc/inittab (1)
24) /etc/init.d/keymaps (1)
25) /etc/init.d/localmount (1)
26) /etc/pam.d/login (1)
27) /etc/login.defs (1)
28) /etc/make.conf.example (1)
29) /etc/cron.weekly/makewhatis (1)
30) /etc/init.d/modules (1)
31) /etc/ssh/moduli (1)
32) /etc/nanorc (1)
33) /etc/init.d/net.lo (1)
34) /etc/init.d/netmount (1)
35) /etc/init.d/nscd (1)
36) /etc/ssl/openssl.cnf (1)
37) /etc/profile (1)
38) /etc/conf.d/rc (1)
39) /etc/init.d/reboot.sh (1)
40) /etc/X11/rstart/rstartd.real (1)
41) /etc/scsi_id.config (1)
42) /etc/securetty (1)
43) /etc/services (1)
44) /etc/init.d/sshd (1)
45) /etc/pam.d/sshd (1)
46) /etc/ssh/sshd_config (1)
47) /etc/sysctl.conf (1)
48) /etc/pam.d/system-auth (1)
49) /etc/udev/udev.conf (1)
Please select a file to edit by entering the corresponding number.
              (don't use -3 or -5 if you're unsure what to do)
              (-1 to exit) (-3 to auto merge all remaining files)
                           (-5 to auto-merge AND not use 'mv -i'):




should I go with option 5 or 3 ?
_________________
Francois Castonguay,
Registered Linux User #412639
4 AMD Phenom 9550 Quand-Core, 4G ram
Back to top
View user's profile Send private message
/albert
n00b
n00b


Joined: 17 Jan 2005
Posts: 58

PostPosted: Fri Aug 11, 2006 12:24 pm    Post subject: Reply with quote

If you mean -5 or -3, the tool sais "don't use -3 or -5 if you're unsure what to do".

The list you got is the list of the configuration-files which have to be updated.
You now have to enter each number of the configuration files (number 1 - 49) and then, the diff between the two files (the old and the new configuration file) is shown you. Hit 'q' to exit this. Then, you got the choice what to do. You can choose between deleting the old and accept the new file, the other way around or again show the diff or to interactivly merge the file.

There should be also an articel in the gentoo handbook about etc-update or look at the manual page.

I always use new configuration files, when I never touched the old ones. I think this is safe. Only the configuration files I changed myself a little bit, I often ignore the update or changed it manually.
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4734
Location: Angra do Heroísmo (PT)

PostPosted: Fri Aug 11, 2006 2:52 pm    Post subject: Reply with quote

Hi.

About the mdns=off warning, you can look here and check the bug report.
_________________
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Back to top
View user's profile Send private message
microtechno
Apprentice
Apprentice


Joined: 17 Apr 2006
Posts: 224
Location: Adelaide, Australia

PostPosted: Wed Sep 27, 2006 9:04 am    Post subject: Reply with quote

thanks,
gives me piece of mind now.
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4734
Location: Angra do Heroísmo (PT)

PostPosted: Wed Oct 04, 2006 1:46 am    Post subject: Reply with quote

Moved from Other Things Gentoo to Duplicate Threads.

[mod]Moved to dupes in favor of https://forums.gentoo.org/viewtopic-t-436372.html[/mod]
_________________
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum