Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

bad command 'mdns'off'

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
17 posts • Page 1 of 1
Author
Message
mjh74
n00b
n00b
Posts: 6
Joined: Fri Aug 16, 2002 8:28 am
Location: Leicester, UK

bad command 'mdns'off'

  • Quote

Post by mjh74 » Sun Oct 31, 2004 12:25 am

Hi all,

Could anyone tell me what I can do to cure this error other than to just comment the line out in host.conf. On bootup I get the following..

/etc/host.conf: line 24: bad command 'mdns off'

The line in /etc/host.conf is just mdns off.

This only occurred since my last system update. Is it ok just to leave the line commented out?

TIA

Mark.
Top
Merlin-TC
l33t
l33t
User avatar
Posts: 603
Joined: Fri May 16, 2003 3:29 pm
Location: Germany

  • Quote

Post by Merlin-TC » Sun Oct 31, 2004 12:36 am

I am having the same problem.
I haven't found a fix yet because I am not sure what actually causes the error.
The command should be known by the system.
Do you know which package caused it?
I suspect the baselayout or glibc.
I also noticed that in the rc.conf the timezone setting is missing.
So I had to enter it myself again: CLOCK=local

Does anyone know why it was removed?
Top
mjh74
n00b
n00b
Posts: 6
Joined: Fri Aug 16, 2002 8:28 am
Location: Leicester, UK

  • Quote

Post by mjh74 » Sun Oct 31, 2004 12:57 am

I'm almost certain it was glibc yes...
Top
chi
n00b
n00b
Posts: 6
Joined: Sat May 08, 2004 2:03 pm

  • Quote

Post by chi » Sun Oct 31, 2004 5:20 am

The "CLOCK=local" is in /etc/conf.d/clock now.
Top
Merlin-TC
l33t
l33t
User avatar
Posts: 603
Joined: Fri May 16, 2003 3:29 pm
Location: Germany

  • Quote

Post by Merlin-TC » Sun Oct 31, 2004 5:33 am

Ah thanks :)
Top
mjh74
n00b
n00b
Posts: 6
Joined: Fri Aug 16, 2002 8:28 am
Location: Leicester, UK

  • Quote

Post by mjh74 » Sun Oct 31, 2004 11:01 am

And for the mdns problem? Any thoughts anyone?
Top
apache
n00b
n00b
Posts: 60
Joined: Tue Jul 20, 2004 12:54 am
Location: Austria

  • Quote

Post by apache » Mon Nov 01, 2004 1:41 pm

I think it's safe to comment it out, it should be the same as 'mdns off' and I think the most people do not need MultiCast DNS.
Top
infion
n00b
n00b
Posts: 4
Joined: Mon Nov 01, 2004 6:17 pm
Location: Potsdam and Gehlenberg, Germany

  • Quote

Post by infion » Mon Nov 01, 2004 6:22 pm

For me the problem with
/etc/host.conf: line 24: bad command 'mdns off'
was solved after I recompiled glibc ;-)
Top
mjh74
n00b
n00b
Posts: 6
Joined: Fri Aug 16, 2002 8:28 am
Location: Leicester, UK

  • Quote

Post by mjh74 » Mon Nov 01, 2004 7:21 pm

Hmmm I tried that and still the same. I will just comment the line out.
Top
ensonic
n00b
n00b
Posts: 31
Joined: Fri Oct 29, 2004 2:07 pm
Location: Leipzig/Germany
Contact:
Contact ensonic
Website

  • Quote

Post by ensonic » Wed Nov 03, 2004 9:04 pm

I am having the problem too. And I suspect that this causes problems with network resolution. My dnsdomainname is in fact 'local' and therefore
mdns needs to be off.

I am not sure if this is linked, but when I try 'hostname -f' (or -s or -d') I always get 'hostname: Unknown host'
Top
apache
n00b
n00b
Posts: 60
Joined: Tue Jul 20, 2004 12:54 am
Location: Austria

  • Quote

Post by apache » Sun Nov 07, 2004 1:33 pm

A few days ago a new version of glibc appeared in portage. After upgrading to this version (2.3.4.20041102, ACCEPT_KEYWORDS="~x86"), the problem disappeared.
Top
richard.scott
Veteran
Veteran
Posts: 1497
Joined: Mon May 19, 2003 5:19 pm
Location: Oxfordshire, UK
Contact:
Contact richard.scott
Website

  • Quote

Post by richard.scott » Fri Apr 01, 2005 11:54 am

I had this problem after an upgrade of glibc to 2.3.4.20041102-r1.

After lost of head scratching and shouting "yet again upgrading glibc as broken stuff" I rebooted my system and all seems to be fixed.

I've got to go and check the console now, but I think its all ok.

EDIT: ok, cancel that, its still broken :-(
Top
stebo0728
n00b
n00b
Posts: 2
Joined: Fri May 05, 2006 2:11 am

run this command

  • Quote

Post by stebo0728 » Fri May 05, 2006 2:19 am

run the command

#etc-update


when it asks about config files, choose the "-5" option, then reboot, it should fix this, it worked for me
Top
bunder
Bodhisattva
Bodhisattva
Posts: 5956
Joined: Sat Apr 10, 2004 5:13 am

Re: run this command

  • Quote

Post by bunder » Fri May 05, 2006 4:20 am

stebo0728 wrote:run the command

#etc-update


when it asks about config files, choose the "-5" option, then reboot, it should fix this, it worked for me
you shouldn't even have to reboot. after the etc-update (in which host.conf will need to be updated), the error will simply disappear.
Neddyseagoon wrote:The problem with leaving is that you can only do it once and it reduces your influence.
banned from #gentoo since sept 2017
Top
HeXiLeD
Veteran
Veteran
User avatar
Posts: 1160
Joined: Sat Aug 20, 2005 5:41 pm
Location: Online

  • Quote

Post by HeXiLeD » Sat May 06, 2006 2:48 pm

Same problem here in 2 boxes. ( was a fresh install )
#dispatch-conf to update the config files and then #emerge -Duav world downgraded glibc.

After that the issue was solved.
Do you hear the sound of inevitability?
With age, comes great grumpiness and that, was 20 years ago...

CertFP: becbbd161d5a5c31de3c45171b77bf710911db29 / d985d21f89fe2977b593c4d381a1a86802e62990d9328d893db76d59f9935244
Top
Bones McCracker
Veteran
Veteran
User avatar
Posts: 1611
Joined: Tue Mar 14, 2006 8:23 am
Location: U.S.A.

  • Quote

Post by Bones McCracker » Sun May 07, 2006 12:06 am

running etc-update you will note the mdns line is removed
Top
Dr. Strangelove
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 104
Joined: Mon May 01, 2006 10:21 pm
Location: Germania

  • Quote

Post by Dr. Strangelove » Sun May 07, 2006 10:02 am

BoneKracker wrote:running etc-update you will note the mdns line is removed
Yes, and just do simple

Code: Select all

# man host.conf
for wondering about (non-)existence of 'mdns' lines.
Good Luck!
Top
Post Reply

17 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic