LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-23-2011, 03:53 PM   #16
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032

Hold on, now it works!!
Looks like you fixed your firewall
 
Old 10-23-2011, 03:57 PM   #17
nibraz
Member
 
Registered: Oct 2008
Posts: 219

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by bathory View Post
Hold on, now it works!!
Looks like you fixed your firewall
yeah it works!! thanks to you man!!!

You see my router was forwarding ports to ip 192.168.1.60 but last night i switched off my server and this morning when i turned on my server my ip changed to 192.168.1.67 which i didnt know. So all these time my router was forwarding ports to the wrong ip address. Is there anyway that i can make my server just to use a static ip say like 192.168.1.100 instead of it keep changing? thanks!
 
Old 10-23-2011, 04:03 PM   #18
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Cool.
You may mark this thread "Solved" and start a new one for apache if you want to.

Regards
 
Old 10-23-2011, 04:15 PM   #19
nibraz
Member
 
Registered: Oct 2008
Posts: 219

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by bathory View Post
Cool.
You may mark this thread "Solved" and start a new one for apache if you want to.

Regards
Yes will do.

Is there anyway that i can make my server just to use a static ip say like 192.168.1.100 instead of it keep changing everytime?

Thanks again!!
 
Old 10-23-2011, 04:30 PM   #20
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
I guess it's your router that's assigning IPs using dhcp.
You can read this to see how to assign your server a static IP

Cheers

Last edited by bathory; 10-23-2011 at 04:31 PM.
 
Old 10-23-2011, 07:40 PM   #21
nibraz
Member
 
Registered: Oct 2008
Posts: 219

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by bathory View Post
I guess it's your router that's assigning IPs using dhcp.
You can read this to see how to assign your server a static IP

Cheers

Great! Thanks again for all the help!
 
Old 10-24-2011, 12:34 AM   #22
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

Now that everything is sorted out, you may also turn recursion off in general, so your dns is not abused by others and allow recursion only for specific hosts networks.
So, in named.conf comment out or remove
Quote:
recursion yes;
and use
Code:
allow-recursion {127.0.0.1;
                            192.168.1/24;
                            2.103.xxx.xxx;
                            };
Regards
 
Old 10-30-2011, 09:04 PM   #23
nibraz
Member
 
Registered: Oct 2008
Posts: 219

Original Poster
Rep: Reputation: 18
great thanks!!
 
  


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
server online but http not Baghdad Linux - Newbie 14 01-03-2006 01:23 PM
Server goes online when started and stays online ... joepl Linux - Networking 1 08-18-2005 02:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:24 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