LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 12-21-2016, 12:02 PM   #1
bscho
Member
 
Registered: Nov 2012
Location: London
Distribution: Mint 20, Kali, Peppermint, Ubuntu, MakuluFlash, Fedora 32, Windows 12 Lite, MakuluLinux
Posts: 821

Rep: Reputation: 28
how to flush the dns on Fedora 25


How to flush the dns on Fedora 25. I cannot see my website on Fedora 25 which used to work OK on Firefox on my desktop. Everyone else can see it including my laptop again with Fedora 25 connected to the Network cable.
It is suggested that I flush the dns but cannot find how to do it on Fedora.
Any help would be appreciated.how to flush the dns on Fedora 25
 
Old 12-21-2016, 03:49 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
In general Linux doesn't cache lookups like Windows.

There ARE tools that may do it depending on what you're doing.

If the Linux system itself is a DNS server it might be a "caching DNS" server and you'd have to explore that.

I once found someone (the infamous "they") had turned on nscd which is Name Service Caching Daemon on a couple of servers. No one ever admitted doing so. Turning it off stopped the caching it was doing. If you're relying on it bouncing it might clear the cache.

Some tools do their own caching (e.g. Veritas NetBackup) and have their own methods for clearing cache.

You might also want to verify the entry you're seeing isn't in your local hosts file.

Check /etc/nsswitch.conf to see how you have lookups going (e.g. dns? files? nis+? etc...)
 
Old 12-21-2016, 04:05 PM   #3
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,819

Rep: Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144
It might be just the browser cache that needs flushing. (I sometimes have to do that if I've changed networks while using firefox for example.)
 
Old 12-21-2016, 04:08 PM   #4
bscho
Member
 
Registered: Nov 2012
Location: London
Distribution: Mint 20, Kali, Peppermint, Ubuntu, MakuluFlash, Fedora 32, Windows 12 Lite, MakuluLinux
Posts: 821

Original Poster
Rep: Reputation: 28
Quote:
Originally Posted by ferrari View Post
It might be just the browser cache that needs flushing. (I sometimes have to do that if I've changed networks while using firefox for example.)
I have done that nothings changed. I can connect using Firefox as a user not root and it works fine. have flushed the dns cache as well no joy.
 
Old 12-21-2016, 06:52 PM   #5
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,819

Rep: Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144
Are you using a proxy perhaps? That might explain why user account works, but not as root.
 
Old 12-22-2016, 05:04 AM   #6
bscho
Member
 
Registered: Nov 2012
Location: London
Distribution: Mint 20, Kali, Peppermint, Ubuntu, MakuluFlash, Fedora 32, Windows 12 Lite, MakuluLinux
Posts: 821

Original Poster
Rep: Reputation: 28
Quote:
Originally Posted by ferrari View Post
Are you using a proxy perhaps? That might explain why user account works, but not as root.
Thanks tried both no proxy and proxy no Joy. I guess this is not solvable I think I have tried everything, it just stopped working yesterday for no apparent reason. I have even run clamscan and rk hunter no joy. Every other website works OK.
 
Old 12-22-2016, 05:13 AM   #7
bscho
Member
 
Registered: Nov 2012
Location: London
Distribution: Mint 20, Kali, Peppermint, Ubuntu, MakuluFlash, Fedora 32, Windows 12 Lite, MakuluLinux
Posts: 821

Original Poster
Rep: Reputation: 28
I have just found out my site works Ok if I do not use Https:// it only works with http. Any ideas anyone.
 
Old 12-22-2016, 08:02 AM   #8
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
http uses port 80 by default and https uses port 443 by default (i.e. if you're not specifying the port in the URL).

It may be your web server is allowing http but not https in the Apache setup or it may be you've not opened port 443 in the firewall.
 
Old 12-22-2016, 11:30 AM   #9
bscho
Member
 
Registered: Nov 2012
Location: London
Distribution: Mint 20, Kali, Peppermint, Ubuntu, MakuluFlash, Fedora 32, Windows 12 Lite, MakuluLinux
Posts: 821

Original Poster
Rep: Reputation: 28
Quote:
Originally Posted by MensaWater View Post
http uses port 80 by default and https uses port 443 by default (i.e. if you're not specifying the port in the URL).

It may be your web server is allowing http but not https in the Apache setup or it may be you've not opened port 443 in the firewall.
Thanks, No have found my provider has found the same problem and they are attempting to fix it.
 
Old 12-22-2016, 02:18 PM   #10
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,819

Rep: Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144
Based on this new development then it shouldn't make a difference as to whether you were running firefox as root or not.
 
Old 12-22-2016, 03:50 PM   #11
bscho
Member
 
Registered: Nov 2012
Location: London
Distribution: Mint 20, Kali, Peppermint, Ubuntu, MakuluFlash, Fedora 32, Windows 12 Lite, MakuluLinux
Posts: 821

Original Poster
Rep: Reputation: 28
Quote:
Originally Posted by ferrari View Post
Based on this new development then it shouldn't make a difference as to whether you were running firefox as root or not.
That's true. It was my providers back end that was the problem, but I had to reset the cache in any event.

Really weird problem though.

Happy Christmas and Joyous New year to everyone that helped.
 
  


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
DNS flush flukeyLinux Linux - Newbie 2 12-07-2012 06:52 AM
how to flush dns cache SarahGurung Linux - Newbie 2 10-18-2011 06:05 AM
how-to flush dns cache PlatinumRik Linux - Networking 6 07-27-2011 02:47 PM
Flush DNS in CentOS k_oudom Linux - Networking 1 12-20-2009 07:58 AM
Flush DNS HiOctane21 *BSD 2 05-15-2007 11:44 AM

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

All times are GMT -5. The time now is 04:17 PM.

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