Re: Pi-hole, Linux hosts file and local DNS

2021-07-25 Thread Donald Mac McCarthy via PLUG-discuss
There may be a way to do it via dns, but why wouldn’t you use something like 
haproxy? You can use a single node instance to do it. I mention it because many 
devices have a very simple and/or old network stack that may not play as nice 
as a more full featured network stack. If they are all http/s based services, 
NGINX serves as a great option. Port information is not in the DNS 
specification. My $0.02.

Mac

--
Donald Mac McCarthy
Director, Field Operations
+1.602.584.4445 (desk)
+1.602.727.4131 (mobile)

> On Sunday, Jul 25, 2021 at 2:13 PM, Aaron Jones via PLUG-discuss 
> mailto:plug-discuss@lists.phxlinux.org)> 
> wrote:
> You can assign domain names to local services internally using pihole. Yes. I 
> do.
>
> > On Jul 25, 2021, at 10:07 AM, Amit Nepal via PLUG-discuss 
> >  wrote:
> >
> > 
> > If I am understanding your question correctly, you can use pihole to 
> > resolve ips to your local domain names like you can with linux hosts file, 
> > but I don't believe there is a way to include port numbers with DNS 
> > resolution.
> >
> > Thank You,
> > Amit
> >
> > On 7/25/2021 12:08 AM, Steve B via PLUG-discuss wrote:
> > > Is there a way to use Pi-holes local DNS functions to create entries for 
> > > services on my local LAN?
> > >
> > > For example if Pi-Hole is at http://192.168.1.160/admin can i create 
> > > something that has that full URL? The Linux hosts file limits me to the 
> > > IP address and I'm looking for a way to have anything that comes after 
> > > the IP such as port numbers and such.
> > > --- PLUG-discuss mailing 
> > > list - PLUG-discuss@lists.phxlinux.org 
> > > (mailto:PLUG-discuss@lists.phxlinux.org) To subscribe, unsubscribe, or to 
> > > change your mail settings: 
> > > https://lists.phxlinux.org/mailman/listinfo/plug-discuss
> >
> >
> >
> >
> > ---
> > PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
> > To subscribe, unsubscribe, or to change your mail settings:
> > https://lists.phxlinux.org/mailman/listinfo/plug-discuss 
> > ---
> PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
> To subscribe, unsubscribe, or to change your mail settings:
> https://lists.phxlinux.org/mailman/listinfo/plug-discuss


signature.asc
Description: PGP signature
---
PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
https://lists.phxlinux.org/mailman/listinfo/plug-discuss

I need help creating a partition.

2021-07-25 Thread Michael via PLUG-discuss
gparted is failing me.It is a logical partition(/dev/sdc10) labled
/home. It is 48 GB large. here is my attempt at using mkfs:

michael@MyNUC:~$ sudo mkfs.ext4 -F -O ^64bit -L '/opt' '/dev/sdc10'  00:00:03
[sudo] password for michael:
mke2fs 1.45.5 (07-Jan-2020)
mkfs.ext4: invalid blocks '00:00:03' on device '/dev/sdc10'
michael@MyNUC:~$ sudo mkfs.ext4 -F -O ^64bit -L '/opt' '/dev/sdc10' 500
mke2fs 1.45.5 (07-Jan-2020)
/dev/sdc10 contains a ext4 file system
created on Sun Jul 25 21:38:59 2021
64-bit filesystem support is not enabled.  The larger fields afforded
by this feature enable full-strength checksumming.  Pass -O 64bit to
rectify.

Filesystem too small for a journal
Discarding device blocks: done
Creating filesystem with 125 4k blocks and 64 inodes

Allocating group tables: done
Writing inode tables: done
Writing superblocks and filesystem accounting information: done

michael@MyNUC:~$ sudo mkfs.ext4 -F -O ^64bit -L '/opt' '/dev/sdc10' 125 4k
mke2fs 1.45.5 (07-Jan-2020)
Usage: mkfs.ext4 [-c|-l filename] [-b block-size] [-C cluster-size]
[-i bytes-per-inode] [-I inode-size] [-J journal-options]
[-G flex-group-size] [-N number-of-inodes] [-d root-directory]
[-m reserved-blocks-percentage] [-o creator-os]
[-g blocks-per-group] [-L volume-label] [-M last-mounted-directory]
[-O feature[,...]] [-r fs-revision] [-E extended-option[,...]]
[-t fs-type] [-T usage-type ] [-U UUID] [-e errors_behavior][-z undo_file]
[-jnqvDFSV] device [blocks-count]
michael@MyNUC:~$ sudo mkfs.ext4 -F -O ^64bit -L '/opt' '/dev/sdc10' 125
mke2fs 1.45.5 (07-Jan-2020)
/dev/sdc10 contains a ext4 file system labelled '/opt'
created on Sun Jul 25 21:47:13 2021
/dev/sdc10: Not enough space to build proposed filesystem while
setting up superblock
michael@MyNUC:~$ sudo mkfs.ext4 -F -O ^64bit -L '/home' '/dev/sdc10' 125
mke2fs 1.45.5 (07-Jan-2020)
/dev/sdc10 contains a ext4 file system labelled '/opt'
created on Sun Jul 25 21:47:13 2021
/dev/sdc10: Not enough space to build proposed filesystem while
setting up superblock
michael@MyNUC:~$ sudo mkfs.ext4 -F -O ^64bit -L '/home' '/dev/sdc10' 125
mke2fs 1.45.5 (07-Jan-2020)
/dev/sdc10 contains a ext4 file system labelled '/opt'
created on Sun Jul 25 21:47:13 2021
/dev/sdc10: Not enough space to build proposed filesystem while
setting up superblock
michael@MyNUC:~$

Hmmm not enough space? But gparted says:

All operations completed successfully though the error report says
otherwise (including saying I created a MSDOS partition when I created
ext4 partitions).

(error report)
48.00 GiB of unallocated space within the partition.
To grow the file system to fill the partition, select the partition
and choose the menu item:
Partition --> Check.

and I run the partition check and  the result is:

GParted 1.0.0

configuration --enable-libparted-dmraid --enable-online-resize

libparted 3.3



Device:/dev/sda
Model:ATA KINGSTON SUV500M
Serial:50026B7783458A92
Sector size:512
Total sectors:468862128

Heads:255
Sectors/track:2
Cylinders:919337

Partition table:msdos

PartitionTypeStartEndFlagsPartition NameFile SystemLabelMount Point
/dev/sda2Extended2046468860927bootextended
/dev/sda6Logical2048410267647ext4/home
/dev/sda5Logical410267648468860927ext4/



Device:/dev/sdc
Model:USB SanDisk 3.2Gen1
Serial:none
Sector size:512
Total sectors:240353280

Heads:255
Sectors/track:2
Cylinders:471280

Partition table:msdos

PartitionTypeStartEndFlagsPartition NameFile SystemLabelMount Point
/dev/sdc1Primary32240353279lbafat32



Delete /dev/sdc1 (fat32, 114.61 GiB) from /dev/sdc  00:00:01( SUCCESS )

calibrate /dev/sdc1  00:00:00( SUCCESS )

path: /dev/sdc1 (partition)
start: 32
end: 240353279
size: 240353248 (114.61 GiB)
delete partition  00:00:01( SUCCESS )



Create Extended Partition #1 (extended, 114.61 GiB) on /dev/sdc
00:00:00( SUCCESS )

create empty partition  00:00:00( SUCCESS )

path: /dev/sdc1 (partition)
start: 2048
end: 240353279
size: 240351232 (114.61 GiB)



Create Logical Partition #2 (ext4, 200.00 MiB) on /dev/sdc  00:00:02
 ( SUCCESS )

create empty partition  00:00:01( SUCCESS )

path: /dev/sdc5 (partition)
start: 4096
end: 413695
size: 409600 (200.00 MiB)
clear old file system signatures in /dev/sdc5  00:00:00( SUCCESS )

write 512.00 KiB of zeros at byte offset 0  00:00:00( SUCCESS )
write 4.00 KiB of zeros at byte offset 67108864  00:00:00( SUCCESS )
write 512.00 KiB of zeros at byte offset 209190912  00:00:00( SUCCESS )
write 4.00 KiB of zeros at byte offset 209649664  00:00:00( SUCCESS )
write 8.00 KiB of zeros at byte offset 209707008  00:00:00( SUCCESS )
flush operating system cache of /dev/sdc  00:00:00( SUCCESS )
set partition type on /dev/sdc5  00:00:01( SUCCESS )

new partition type: ext4
create new ext4 file 

Re: Pi-hole, Linux hosts file and local DNS

2021-07-25 Thread Aaron Jones via PLUG-discuss
You can assign domain names to local services internally using pihole. Yes. I 
do. 

> On Jul 25, 2021, at 10:07 AM, Amit Nepal via PLUG-discuss 
>  wrote:
> 
> 
> If I am understanding your question correctly, you can use pihole to resolve 
> ips to your local domain names like you can with linux hosts file, but I 
> don't believe there is a way to include port numbers with DNS resolution.
> 
> Thank You,
> Amit
> 
> On 7/25/2021 12:08 AM, Steve B via PLUG-discuss wrote:
>> Is there a way to use Pi-holes local DNS functions to create entries for 
>> services on my local LAN? 
>> 
>> For example if Pi-Hole is at http://192.168.1.160/admin can i create 
>> something that has that full URL? The Linux hosts file limits me to the IP 
>> address and I'm looking for a way to have anything that comes after the IP 
>> such as port numbers and such.
>> 
>> 
>> ---
>> PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
>> To subscribe, unsubscribe, or to change your mail settings:
>> https://lists.phxlinux.org/mailman/listinfo/plug-discuss
> 
> ---
> PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
> To subscribe, unsubscribe, or to change your mail settings:
> https://lists.phxlinux.org/mailman/listinfo/plug-discuss
---
PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
https://lists.phxlinux.org/mailman/listinfo/plug-discuss

Re: Pi-hole, Linux hosts file and local DNS

2021-07-25 Thread Amit Nepal via PLUG-discuss
If I am understanding your question correctly, you can use pihole to 
resolve ips to your local domain names like you can with linux hosts 
file, but I don't believe there is a way to include port numbers with 
DNS resolution.


Thank You,
Amit

On 7/25/2021 12:08 AM, Steve B via PLUG-discuss wrote:
Is there a way to use Pi-holes local DNS functions to create entries 
for services on my local LAN?


For example if Pi-Hole is at http://192.168.1.160/admin 
 can i create something that has that full 
URL? The Linux hosts file limits me to the IP address and I'm looking 
for a way to have anything that comes after the IP such as port 
numbers and such.


---
PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
https://lists.phxlinux.org/mailman/listinfo/plug-discuss



---
PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
https://lists.phxlinux.org/mailman/listinfo/plug-discuss

Pi-hole, Linux hosts file and local DNS

2021-07-25 Thread Steve B via PLUG-discuss
Is there a way to use Pi-holes local DNS functions to create entries for
services on my local LAN?

For example if Pi-Hole is at http://192.168.1.160/admin can i create
something that has that full URL? The Linux hosts file limits me to the IP
address and I'm looking for a way to have anything that comes after the IP
such as port numbers and such.
---
PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
https://lists.phxlinux.org/mailman/listinfo/plug-discuss