I may be wrong but here in europe, most configurations give the home router as name server, which seems to me quite normal as your provider should resolve at the beginning to get out to the wild no?
@vbe......no, you are not wrong. Routers get their external ip address from the internet service provider along with DNS service information. When the client requests ip address from the router which commonly also acts as the LAN DHCP server, the router also provides the DNS information to the client also.
In my previous post#3 I was simply looking to "quick fix" a missing DNS configuration but, in practice, on many modern distributions, resolv.conf is redundant in so far as there are often network management software packages that dynamically amend resolv.conf so that the sysadmin is not directly in control of resolv.conf content. Other software on the system may change the content automatically.
By "dynamic" I mean that information received from a router (acting as the local DHCP server) may include DNS server ip addresses (for your local ISP) which a network manangement package might insert into your /etc/resolv.conf without you knowing. Therefore when you
you may see addresses that you didn't expect.
But by "dynamic" I don't mean that it changes continuously, no.
Obviously, in this type of configuration, the router#s ip address is configured as the "gateway" and also the DHCP server. Without that the client has no chance of being fed DNS information.
I may be wrong but here in europe, most configurations give the home router as name server, which seems to me quite normal as your provider should resolve at the beginning to get out to the wild no?
Quote:
Originally Posted by hicksd8
@vbe......no, you are not wrong. Routers get their external ip address from the internet service provider along with DNS service information.
Actually you are both somewhat right: the consumer WLAN routers get their IP address via DHCP from the internet service provider. In the DHCP protocol there are so-called "option fields" to transmit certain kinds of information - the IP address itself being the main and most important one. Other option fields tell the client the default route and - among other things - also the DNS server (in DHCPv4 this is option field 6, see RFC1395, BOOTP Vendor Information Extensions). It is possible for the client to ignore some or all of these, but per default the information is used to configure the IP stack of the client in several respects, including but not limited to the DNS server.
DHCP is explicitly not intended to configure routers, but it is done nonetheless by ISPs. When their (usually riddled with a "user-friendly", aka "crippled" firmware) routers get configured that way they pass on this information to their (WLAN-) clients. I don't know about the situation in other continents but this is how it is done all over in Europe.
It is usually a good idea to NOT use the DNS of the ISP at all and hand-pick a DNS server of your own choice for several reasons:
First, this is a good place to find out more about you and which hosts you contact. The ISP can get that information analysing your IP packets too, true, but this way you dont even need to contact a server to make them aware that you are interested in it.
Second, the DNS servers at least with Germanies ISPs are greatly hacked. IP addresses they don't want you to see are resolved not to their IP addresses but to "127.0.0.1". Some of these hacks have legal background (the German authorities think this is "internet security" and order that to prevent traffic to these sites), some hacks simply express the ISPs opinion that "we don't want our customers to go there". For many years i.e. a certain porn site was known to be "masked" this way by Vodaphone. Now, i don't care that much about porn sites but i like to decide myself if a site is worthy of my attention or not. (corollary: if someone you despise gets treated unfairly you should object as well - chances are the next one treated the same way may be you) Especially when the ones deciding upon masking or not an IP address is are a secret body (in earnest - in Germany this is decided secretly and expressly foregoing due process. But don't worry! Its all in the name of freedom and democracy.) instead of a public court.
I use 3 DNS servers. The first two are operated by UncensoredDNS, a Danish ISP who operates also this public DNS servers. The third one is cloudflare, but even though i appreciate their "no logs, no ads" policy it is there only as a backup:
I hope this helps.
Thank you! Now I have proceeded in installing NetBSD ver. 7.1.1. It's connected with Internet
I also know that the next step is by editing the files .profile and .shrc. But there is already the version 8 available so I downloaded
NetBSD64boot.iso and NetBSD-8.0-i386-install.img.gz. I have a really old IBM NetVista pc and it will suit well for terminal work.
So I need some usb-dongle and cp in=NetBSD-8.0-i386-install.img out=/dev/....
As much as I remember it must in Linux be like /dev/sdc in a computer with two hard disks but where then
Hello All,
I have exactly same issue @vikas_trl had in following link:
https://www.unix.com/shell-programming-and-scripting/259854-control-not-returning-sqlplus-calling-unix-shell-script.html
I wonder if he or somebody else could find the issue's cause or the solution.
Any help would... (4 Replies)
Hello All,
I have a UNIX script which will prepare anonymous oracle pl/sql block in a temporary file in run time and passes this file to sqlplus as given below.
cat > $v_Input_File 2>>$v_Log << EOF
BEGIN
EXECUTE IMMEDIATE 'ALTER SESSION FORCE PARALLEL DML PARALLEL 16';
EXECUTE... (1 Reply)
Hi All,
My program flow is as below
Windows batch -- > Cygwin batch --> zsh script
There are multiple Cygwin batch scripts that are called from Windows batch file . But when i am executing the first cygwin batch script the control goes to the zsh file and executes and stoping from... (1 Reply)
Dear Friends,
I need your help once more.
I want to write a simple select as follows
select amount from books
where sr=1234
However, if value of "Amount" is negative then it should print it as follows.
"3000-" and not as "-3000"
Can you help me in this?
Waiting for reply
Anu. (2 Replies)
i have an oracle function which returns two values, one is the error message if the function encounters anything and another one which returns a number
i need to capture both
and pass it on to unix shell script
how to do it (2 Replies)
Hi
Need some help, bit of a noobie here.
This command work perfectly with unix. returns a value of 1 which is what i want.
ps -eo user,comm |grep -v grep |grep -c /path to file
When i run the same command on a linux server it returns a value of 0.,
something maybe wrong with the command.... (4 Replies)
Hi all,
I am very new to BASH shell programming. I need to return an integer from a function to the caller function. I did this:
but it keeps giving me wrong return:
Can someone help me out here, please?
Thanks (2 Replies)
Hi,
I'm having a requirement where I need to call a C program from a shell script and return the value from the C program to shell script.
I refered a thread in this forum. But using that command in the code, it is throwing an error
clear_text_password=$(get_password)
Error: bash:... (24 Replies)
Hi all,
In my application i am trying to select some text & then give it to print. for this i am opening a stream using popen & then later closing using pclose.
Now this is working fine in my environment (solaris) but the pclose function is failing at my clients m/c. Even though print is... (3 Replies)
Hi,
Iam calling a C program from a Unix shell script. The (C) program reads encrypted username/password from a text file , decrypts and returns the decrypted string.
Is there any way i can return the decrypted string to Unix shell program.
My shell script uses the output of the program to... (11 Replies)