Questions tagged [recursive]

68 questions
0
votes
2 answers

Recurse into subdirectories and prefix all files with the name of its holding directory

I have files in subdirectories A, B, C Each directory has files of various names, lets say 1.txt 2.txt 3.txt in each although the names are not relevant as such. I want to run a bash shell script to recurse into each so that the files in each are…
Richard L
  • 33
  • 5
0
votes
1 answer

Caching values and changing nameservers

I have just realised my understanding of DNS caching must be at least slightly flawed, and I'm looking to correct my understanding. When a domain name is registered, I understand that the nameservers for it are added in the root nameservers. I…
davidgo
  • 5,964
  • 2
  • 21
  • 38
0
votes
1 answer

bind9: how to query external nameservers in local zone config

I have configured a zone in my bind9 installation. Its supposed to be a public nameserver which I am managing through a python script for dyndns subdomains. But my main website is hosted by 3rd party somewhere else and in near future I want to host…
bakasan
  • 93
  • 1
  • 10
0
votes
0 answers

PowerDNS : Respond differently based on Client IP address

Currently I'm using Bind9 for my DNS server. It was set-up in such a way that the server respond differently depending on which IP the request came from. I'm using Bind's View to achieve this. The conf file is something similar to this : acl…
xar
  • 131
  • 5
0
votes
2 answers

How would I list owners and permissions for all directories named X recursively?

Basically I would like to do a 'ls -l' recursively showing only those directories named web. How would I accomplish that?
Frank Barcenas
  • 595
  • 4
  • 17
0
votes
1 answer

wget blocking subdirectiories

I would like to recursively download a page, but block link like this containing "strony": http://domain.com/rozrywka/strony/2/ my command is wget -r -nd --delete-after -e robots=off -X strony http://domain.com but it's still downloading them.
Marek Zakrzewski
  • 163
  • 1
  • 2
  • 11
0
votes
2 answers

Recursion not available, but still gives answer

I tried to dig a domain on a non-recursive DNS server. From what I know (so far), a non recursive DNS is not supposed to answer what they are not authoritative for. For example : [root@dhcppc14 vwxyz]# dig muse.mu @202.159.36.218 ; <<>> DiG…
vwxyzx
  • 11
  • 1
  • 3
0
votes
2 answers

Multiple authoritative DNS server on same IPv4 address

I'd like to maintain a DNS tunnel on my self-hosted server at example.com. I also have a DNS server on it, which serves everything for example.com. I'm currently using dns2tcp for DNS tunneling, on the domain tunnel.example.com. NSD3 is used for…
0
votes
2 answers

Recursive deletion of files (bash)

I'm familiar with how I would tackle this with PHP, however I'd like to get some more practice with bash scripting. The task is to delete all files in a folder, which itself contains subfolders (with files). The files would typically be .pdf (or…
a coder
  • 719
  • 4
  • 20
  • 37
0
votes
2 answers

How long does it take to modify the permissions of /home/?

So I am using Transmit.app for my SFTP client and I changed permissions in /home/ and pressed the "Apply to Enclosed..." option as well. So essentially it is applying the desired permission to every single thing in /home/. The size of the directory…
0
votes
1 answer

Change group of only cache folders, recursive

I have a document root folder and I want to cange the group of only the cache directories. How can I do this recursive? The cache directories are always below templates/html, and I want to change it to wwwrun:www. The folder structure looks…
powtac
  • 639
  • 2
  • 6
  • 19
0
votes
1 answer

Finding/deleting top level folders not containing any files

I want to delete the top level directory which does not contain any files, but can contain other empty (meaning again not containing files) directories. For example: $ ls -R .: foo/ ./foo/: bar bar1 ./foo/bar/: ./foo/bar1/: Here, I would like to…
skinp
  • 749
  • 1
  • 7
  • 19
0
votes
2 answers

How do I change folder timestamps recursively?

I was wondering if anyone knows how to change the timestamps of folders recursively based on the latest timestamp found of the files in that folder. So for example: jon@UbuntuPanther:/media/media/MP3s/Foo Fighters/(1997-05-20) The Colour and The…
MonkeyWrench32
  • 101
  • 1
  • 2
0
votes
1 answer

Is authoritative nameserver IP address cached by Recursive resolver?

I know that A,AAAA records will be cached by Recursive resolver and stub resolver. When a person searches a subdomain/domain, if it is CNAME record which is searched, the Resolver gets the corresponding domain name( because CNAME record value will…
0
votes
2 answers

How to disable reverse DNS lookup in Apache 2.2 or in recursive bind

I would like to stop Apache (2.2) from doing reverse lookups for client IP addresses. I have HostnameLookups Off and LogFormat "%h %l %u %t %V \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" port:%p" combined_vhost LogFormat "%h %l %u %t \"%r\"…
Ján Lalinský
  • 262
  • 1
  • 10