Ask Question Forum:
Model Library:2025-02-08:A.I. model is online auto reply
C
O
M
P
U
T
E
R
2
8
Show
#
ASK
RECENT
←
- Underline
- Bold
- Italic
- Indent
- Step
- Bullet
- Quote
- Cut
- Copy
- Paste
- Table
- Spelling
- Find & Replace
- Undo
- Redo
- Link
- Attach
- Clear
- Code
Below area will not be traslated by Google,you can input code or other languages
Hint:If find spelling error, You need to correct it,1 by 1 or ignore it (code area won't be checked).
X-position of the mouse cursor
Y-position of the mouse cursor
Y-position of the mouse cursor
Testcursor
caretPos
Attachment:===
Asked by duncanb7
at 2024-07-26 22:49:08
Point:500 Replies:10 POST_ID:828618USER_ID:11059
Topic:
Apache Web Server;Linux Networking;Domain Name Service (DNS)
As we know we can manually set DNS IP at ISP connection on window easily as follows
(http://windows.microsoft.com/en-us/windows7/change-tcp-ip-settings)
Usually we will set Global or ISP provided public DNS IP such as 8.8.8.8 or 8.8.4.4 Google DNS for internet connection by auto or manually
The question can we use my Linux server as DNS server and using my server IP such as
212.1.210.209 that will replace 8.8.8.8 and do the same function of Goolge DNS server ?
212.1.210.209 is internet IP for both mysite.com and nameserver DNS IP
The testing, we can set facebook.com zone record file at my linux server and if we can
go to facebook.com after settup zone file on my server successfully
the test is successful. But how to do the setup at /etc/resolv.conf, /var/named/facebook.com.db and at /etc/named.conf for IP address of http://facebook.com ?
So in other words, my linux DNS server only resolve both IP of website only(mysite.com and facebook.com) in this testing cases, other website can NOT be resolved to since no zone record file on my server
please advise
Duncan
(http://windows.microsoft.com/en-us/windows7/change-tcp-ip-settings)
Usually we will set Global or ISP provided public DNS IP such as 8.8.8.8 or 8.8.4.4 Google DNS for internet connection by auto or manually
The question can we use my Linux server as DNS server and using my server IP such as
212.1.210.209 that will replace 8.8.8.8 and do the same function of Goolge DNS server ?
212.1.210.209 is internet IP for both mysite.com and nameserver DNS IP
The testing, we can set facebook.com zone record file at my linux server and if we can
go to facebook.com after settup zone file on my server successfully
the test is successful. But how to do the setup at /etc/resolv.conf, /var/named/facebook.com.db and at /etc/named.conf for IP address of http://facebook.com ?
So in other words, my linux DNS server only resolve both IP of website only(mysite.com and facebook.com) in this testing cases, other website can NOT be resolved to since no zone record file on my server
please advise
Duncan
Author: duncanb7 replied at 2024-07-27 00:07:56
For my memo only,
you trigger me to have idea for my system
I could do a script on window system to to check DNS sestting is correct
to point to authoriized agent/DNS server before sending any http request for security
I think there is some software or firewall already made that for us.
That might be next tutorial thread
you trigger me to have idea for my system
I could do a script on window system to to check DNS sestting is correct
to point to authoriized agent/DNS server before sending any http request for security
I think there is some software or firewall already made that for us.
That might be next tutorial thread
Author: duncanb7 replied at 2024-07-26 23:55:55
Thanks for all of your reply.
We should understand more or in deep on concept, fudmential, basis for all networking or computer hardware or software if we want to protect our computer or system in good security.
In other words, we should know more kownledge than hacker or cracker in order to
flight them down to protect our computer network system.
We should understand more or in deep on concept, fudmential, basis for all networking or computer hardware or software if we want to protect our computer or system in good security.
In other words, we should know more kownledge than hacker or cracker in order to
flight them down to protect our computer network system.
Accepted Solution
Expert: spravtek replied at 2024-07-26 23:50:54
167 points EXCELLENT
Yes, like I said, if you point Cisco.com to the IP of your website it should resolve to your website ... Just make sure recursion and maybe even caching is disabled.
You can easily test this by doing a nslookup or dig of cisco.com on your system (once you've created the necessary zones and what not) ... It should resolve to the IP of your site.
You can easily test this by doing a nslookup or dig of cisco.com on your system (once you've created the necessary zones and what not) ... It should resolve to the IP of your site.
Author: duncanb7 replied at 2024-07-26 23:46:51
I mean you will think
my testing case for cisco.com will work mentioned above, Right ?
If my setup as I said is set correcly, it will work, just type cisco.com on my broswer, it wil go to my website since both zone files are same on my server
IF yes, the tuturial wil be end for this thread.
my testing case for cisco.com will work mentioned above, Right ?
If my setup as I said is set correcly, it will work, just type cisco.com on my broswer, it wil go to my website since both zone files are same on my server
IF yes, the tuturial wil be end for this thread.
Author: duncanb7 replied at 2024-07-26 23:42:06
Be reminded, it is tutorial for DNS concept and that is not related "legal or not"
Just do test case study
Just do test case study
Author: duncanb7 replied at 2024-07-26 23:39:47
my server named.conf file is already set "recusion no" so that there is no DNS forwardering to other DNS server.
named.conf
==========
view "external" {
/* This view will contain zones you want to serve only to "external" clients
* that have addresses that are not on your directly attached LAN interface subnets:
*/
recursion no;
}
if "recursion yes" is set
Client --> Your-DNS-Server --> ISP-DNS-Server
if "recursion no" is set
Client --> Your-DNS-Server
RIght ?
named.conf
==========
view "external" {
/* This view will contain zones you want to serve only to "external" clients
* that have addresses that are not on your directly attached LAN interface subnets:
*/
recursion no;
}
if "recursion yes" is set
Client --> Your-DNS-Server --> ISP-DNS-Server
if "recursion no" is set
Client --> Your-DNS-Server
RIght ?
Assisted Solution
Expert: spravtek replied at 2024-07-26 23:38:35
166 points EXCELLENT
You could do that, but I wouldn't because that is bordering on if not already illegal... If you don't make it available from the outside you can experiment with it however ...
That is a tactic much used by, e.g crackers, they'll send you an email that appears to be coming from your bank asking to login into the website, they provide a link, that link looks like it's coming from the bank, and even the website has the domain name of your bank, but if you check the IP-address the domain resolves to, you can see it's not the correct IP...
So, you're infact making your DNS server master for a Domain record that it isn't supposed to be master for ...
In any case ... If you create a zone file of cisco.com and use the IP-address of your site and then test from a client which uses your DNS server, it will go to your website... DNS translates Domain names to ip-addresses...
This is a very nice tutorial on how to setup and configure a BIND DNS server: http://ostechnix.wordpress.com/2013/01/25/setup-dns-server-step-by-step-in-centos-6-3-rhel-6-3-scientific-linux-6-3-3/
Here is another one: https://www.digitalocean.com/community/articles/how-to-install-the-bind-dns-server-on-centos-6
What is it exactly you want to test?
Creating zones? ... Something else??
That is a tactic much used by, e.g crackers, they'll send you an email that appears to be coming from your bank asking to login into the website, they provide a link, that link looks like it's coming from the bank, and even the website has the domain name of your bank, but if you check the IP-address the domain resolves to, you can see it's not the correct IP...
So, you're infact making your DNS server master for a Domain record that it isn't supposed to be master for ...
In any case ... If you create a zone file of cisco.com and use the IP-address of your site and then test from a client which uses your DNS server, it will go to your website... DNS translates Domain names to ip-addresses...
This is a very nice tutorial on how to setup and configure a BIND DNS server: http://ostechnix.wordpress.com/2013/01/25/setup-dns-server-step-by-step-in-centos-6-3-rhel-6-3-scientific-linux-6-3-3/
Here is another one: https://www.digitalocean.com/community/articles/how-to-install-the-bind-dns-server-on-centos-6
Hope you bring a simple testing or test case for this tutorial for DNS concept
What is it exactly you want to test?
Creating zones? ... Something else??
Author: duncanb7 replied at 2024-07-26 23:34:26
Hope you bring a simple testing or test case for this tutorial for DNS concept
Author: duncanb7 replied at 2024-07-26 23:25:35
much better understanding from your reply
But could I create zone file for cisco.com or facebook.com manully by myself on linux server, just for concept testing(no need complicated) ?
at /var/named/, there is zone file for mysite.com which is called, mysite.com.db
for testing or fast example, I can create or copy mysite.com.db to cisco.com.db
and then include it in /etc/named.conf and save it
zone "mysite.com" {
type master;
file "/var/named/mysite.com.db";
};
zone "cisco.com" {
type master;
file "/var/named/cisco.com.db";
};
and then restart named.conf by service command
DO you think that is possible to get the testing succesffuly ?
so when I try cisco.com on my browser, it will go to website of mysite.com since
the cisco zone file is same as mysite.com.db on linux server at /var/named/ directory
Right ?
Duncan
But could I create zone file for cisco.com or facebook.com manully by myself on linux server, just for concept testing(no need complicated) ?
at /var/named/, there is zone file for mysite.com which is called, mysite.com.db
for testing or fast example, I can create or copy mysite.com.db to cisco.com.db
and then include it in /etc/named.conf and save it
zone "mysite.com" {
type master;
file "/var/named/mysite.com.db";
};
zone "cisco.com" {
type master;
file "/var/named/cisco.com.db";
};
and then restart named.conf by service command
DO you think that is possible to get the testing succesffuly ?
so when I try cisco.com on my browser, it will go to website of mysite.com since
the cisco zone file is same as mysite.com.db on linux server at /var/named/ directory
Right ?
Duncan
Assisted Solution
Expert: spravtek replied at 2024-07-26 23:09:23
167 points EXCELLENT
I think you need to first know how DNS works before go and make zone records for facebook.com...
Learn about authoritative and nonauthoritative, forwarding, cache-only, terms you need to know ...
If you want your DNS server to be used to lookup Domains by clients or your own system you need to configure it to do forward lookups, so that it will ask other DNS servers for records it doesn't have any information for...
Client --> Your-DNS-Server --> ISP-DNS-Server
Eg: Your client requests www.cisco.com through your DNS server, your DNS server doesn't have this in his cache and is nonauthoritative for that domain, doesn't have any information for Cisco.com, so he will forward the request to another DNS server (you need to configure this), this other DNS server might have the information (if it doesn't, that DNS server again will forward the request until it reaches the authoritative server for that domain) ... In the end, your DNS server will get the correct information and provide it to your client ...
That is in short how it works... There's a bit more to it, but that's a whole book on itself.
Learn about authoritative and nonauthoritative, forwarding, cache-only, terms you need to know ...
If you want your DNS server to be used to lookup Domains by clients or your own system you need to configure it to do forward lookups, so that it will ask other DNS servers for records it doesn't have any information for...
Client --> Your-DNS-Server --> ISP-DNS-Server
Eg: Your client requests www.cisco.com through your DNS server, your DNS server doesn't have this in his cache and is nonauthoritative for that domain, doesn't have any information for Cisco.com, so he will forward the request to another DNS server (you need to configure this), this other DNS server might have the information (if it doesn't, that DNS server again will forward the request until it reaches the authoritative server for that domain) ... In the end, your DNS server will get the correct information and provide it to your client ...
That is in short how it works... There's a bit more to it, but that's a whole book on itself.